Skip to content
| Marketplace
Sign in
Visual Studio>Tools>AI Studio
AI Studio

AI Studio

Emrah KONDUR

|
14,064 installs
| (3) | Free
Supercharge your Visual Studio workflow with AI-powered tools like code generation, refactoring, commenting, unit test creation, and more, right from the right-click menu.
Download

AI Studio

Codacy Badge

Supercharge your Visual Studio workflow with AI-powered tools like code generation, refactoring, commenting, unit test creation, and more, right from the right-click menu.

🎯 Available on Visual Studio Marketplace →

AI Studio Preview

🚀 Getting Started

  1. Get Your API Key
    Sign in to OpenAI to create your API key.

  2. Configure AI Studio
    Go to Tools → Options → AI Studio and paste in your API key.

    Configuration Screenshot

⚙️ Configuration Options

  • Format Changed Text: Automatically formats AI-generated/refactored code.
  • Language Model: Switch between models or use a custom one for your endpoint.

✨ Features

🔧 Code It

Generate code for stubs or comments:

  1. Select code or place cursor on a line
  2. Right-click → AI Studio → Code It
  3. View AI-generated implementation

Code It

Result:
Code Output

💬 Add Comments

  1. Select code
  2. Right-click → AI Studio → Add Comments
  3. Receive clean, inline comments

Add Comments

🔁 Refactor

  1. Select a method
  2. Right-click → AI Studio → Refactor
  3. View optimized code

Refactor

📝 Add Summary

  1. Select a method or its header
  2. Right-click → AI Studio → Add Summary
  3. Generate XML-style documentation

Summary

📖 Explain

  1. Select code
  2. Right-click → AI Studio → Explain
  3. See code explanation in a popup

Explain

🔐 Security Check

  1. Select code
  2. Right-click → AI Studio → Security Check
  3. View potential vulnerabilities and suggestions

Security Check

🧪 Unit Test Generation

  1. Select a method
  2. Right-click → AI Studio → Add Unit Tests
  3. Instantly generate unit tests

Unit Test Example

Test Configuration

Configure test behaviors via:
Tools → Options → AI Studio → Unit Test

Unit Test Settings

Supported Frameworks

  • Unit Testing

    • MSTest
    • xUnit
    • NUnit
  • Mocking & Isolation

    • Moq
    • FakeItEasy
    • NSubstitute
  • Test Data Generators

    • AutoFixture
    • Bogus
    • GenFu
    • NBuilder
    • AutoBogus
  • Assertion Libraries

    • FluentAssertions
    • Shouldly
    • NFluent
  • Custom Instructions
    Add special rules or constraints for your unit test generation.

🧩 Advanced Customization

✏️ Command Customization

Modify AI Studio behaviors using your own instructions:

  1. Go to Tools → Options → AI Studio → Commands
  2. Customize each action with your own prompt/instructions

Command Settings

Example Result:
Custom Command

📌 Summary

AI Studio makes AI assistance a seamless part of your development workflow in Visual Studio. Whether you're generating code, documenting, testing, or refactoring—it’s all just a right-click away.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft