Skip to content

AI Studio helps you with the power of chatGPT in many subjects such as adding unit tests, refactoring code, adding summary, etc. while writing code, just by right click on the code.

License

Notifications You must be signed in to change notification settings

ekondur/AI-Studio

Repository files navigation

AI Studio

Codacy Badge

AI Studio enhances your coding workflow with ChatGPT-powered features like unit test generation, code refactoring, documentation, and more - accessible via right-click context menu.

Get it from Visual Studio Marketplace

Extension Preview

Getting Started

  1. Obtain API Key: Create your API key at OpenAI Platform

  2. Configure Extension: Navigate to Tools/Options/AI Studio and enter your key

    Settings Page

Configuration Options

  • Format Changed Text: Enable to automatically format refactored code

  • Language Model: Choose between:

    • ChatGPTTurbo
    • GPT4_Turbo
    • GPT4
    • GPT4o
    • GPT4_32k_Context
  • Custom Models: Optionally specify custom models

    Custom Model Settings

Features

Code It

  1. Select code or click on a line
  2. Right-click → "AI Studio / Code It"
  3. Get AI-generated implementation

Code It Example

Result: Code It Output

Add Comments

  1. Select code
  2. Right-click → "AI Studio / Add Comments"
  3. Receive commented code

Add Comments Example

Refactor

  1. Select method
  2. Right-click → "AI Studio / Refactor"
  3. Get optimized code

Refactor Example

Add Summary

  1. Select method or method header
  2. Right-click → "AI Studio / Add Summary"
  3. Receive detailed documentation

Summary Example

Explain

  1. Select code
  2. Right-click → "AI Studio / Explain"
  3. View code explanation popup

Explain Example

Security Check

  1. Select code
  2. Right-click → "AI Studio / Security Check"
  3. Review security suggestions

Security Check Example

Advanced Customization

Command Customization

  1. Navigate to Tools/Options/AI Studio/Commands
  2. Modify command behaviors with custom instructions

Command Settings

Customization Result: Custom Command Example

Unit Test Generation

  1. Select method
  2. Right-click → "AI Studio / Add Unit Tests"
  3. Get generated tests

Unit Test Example

Configure test generation at Tools/Options/AI Studio/Unit Test:

Unit Test Settings

Testing Framework Options

About

AI Studio helps you with the power of chatGPT in many subjects such as adding unit tests, refactoring code, adding summary, etc. while writing code, just by right click on the code.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages