{"id":25757600,"url":"https://github.com/ekondur/ai-studio","last_synced_at":"2026-04-18T12:05:42.549Z","repository":{"id":159433739,"uuid":"627622432","full_name":"ekondur/AI-Studio","owner":"ekondur","description":"AI Studio helps you with the power of AI in many subjects such as adding unit tests, refactoring code, adding summary, etc. while writing code, just by right click on the code.","archived":false,"fork":false,"pushed_at":"2026-04-10T21:14:01.000Z","size":162,"stargazers_count":46,"open_issues_count":0,"forks_count":15,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-10T23:25:39.251Z","etag":null,"topics":["ai","chatgpt","claude","coding","extension","ollama","visual-studio"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=ekondur.AI-Studio","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekondur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["ekondur"]}},"created_at":"2023-04-13T21:14:30.000Z","updated_at":"2026-04-10T21:08:49.000Z","dependencies_parsed_at":"2024-02-23T11:26:54.310Z","dependency_job_id":"a148b59c-fa1a-45bc-a8b8-e7df8152b6af","html_url":"https://github.com/ekondur/AI-Studio","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/ekondur/AI-Studio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekondur%2FAI-Studio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekondur%2FAI-Studio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekondur%2FAI-Studio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekondur%2FAI-Studio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekondur","download_url":"https://codeload.github.com/ekondur/AI-Studio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekondur%2FAI-Studio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31967995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatgpt","claude","coding","extension","ollama","visual-studio"],"created_at":"2025-02-26T16:31:12.975Z","updated_at":"2026-04-18T12:05:42.541Z","avatar_url":"https://github.com/ekondur.png","language":"C#","funding_links":["https://github.com/sponsors/ekondur"],"categories":[],"sub_categories":[],"readme":"# AI Studio\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/400ac43e51b04f3fb2f335c1688b8d4b)](https://app.codacy.com/gh/ekondur/AI-Studio/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\nAI Studio is a Visual Studio 2022 extension that adds AI-assisted code generation, refactoring, documentation, testing, and security analysis to the IDE directly from the context menu.\n\n- [Download from Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=ekondur.AI-Studio)\n- [Report an issue or request a feature](https://github.com/ekondur/AI-Studio/issues)\n\n![AI Studio Preview](https://user-images.githubusercontent.com/4971326/234110009-382af5bf-9bc8-4bec-892b-90bf66b03fa3.png)\n\n## Table of Contents\n\n- [Highlights](#highlights)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n- [Command Cheat Sheet](#command-cheat-sheet)\n- [Feature Walkthrough](#feature-walkthrough)\n- [Configuration](#configuration)\n- [Advanced Customization](#advanced-customization)\n- [Troubleshooting and Feedback](#troubleshooting-and-feedback)\n- [License](#license)\n\n## Highlights\n\n- Seamless right-click workflow across C#, XAML, and most text-based files inside Visual Studio.\n- Supports **OpenAI**, **Azure AI**, **Anthropic (Claude)**, and **Ollama** (local or cloud) — switch provider from the Options page.\n- Generates or updates code while preserving formatting, documentation, and project conventions.\n- Built-in commands for documentation, explanations, security review, and unit test creation keep teams in flow.\n- Integrated Output tool window now supports follow-up chat with a VS-themed input bar and smooth streaming updates without focus jumps.\n\n## Requirements\n\n- Visual Studio 2022 17.6 or later with the VSIX extension workload installed.\n- An API key for your chosen provider (not required for local Ollama) with network access from the IDE.\n- .NET Framework 4.8 SDK (installed with Visual Studio) for local builds.\n\n## Installation\n\n### Marketplace (recommended)\n\n1. Open Visual Studio and choose `Extensions \u003e Manage Extensions`.\n2. Search for **AI Studio**.\n3. Click **Download** and restart Visual Studio to complete the installation.\n\n### Build from source\n\n1. Clone or fork this repository.\n2. Open `AI Studio.sln` in Visual Studio 2022.\n3. Build the solution in `Release` mode.\n4. Double-click the generated `.vsix` under `bin\\Release` to install it into your local instance.\n\n## Quick Start\n\n1. **Choose a provider** and obtain an API key if required (see the [Provider Setup](#provider-setup) section below).\n2. **Configure AI Studio** via `Tools \u003e Options \u003e AI Studio \u003e General`: set the **AI Provider**, paste the key, and enter the model or deployment name.\n3. **Pick a feature** (for example, Code It) by selecting code, right-clicking, and choosing the desired AI Studio command.\n\n![Configuration Screenshot](https://github.com/user-attachments/assets/ca2b6228-23a9-44fd-8a82-0ee6aca8bd66)\n\n## Provider Setup\n\nAI Studio supports four providers out of the box. Switch between them at any time under `Tools \u003e Options \u003e AI Studio \u003e General`.\n\n### OpenAI\n\n| Setting | Value |\n| --- | --- |\n| AI Provider | `OpenAI` |\n| API Key | Your key from [platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys) |\n| Language Model | e.g. `gpt-4o-mini`, `gpt-4o`, `o4-mini` |\n| API Endpoint | `https://api.openai.com/v1/` (default) |\n\n### Azure AI\n\nUse this provider for Azure AI Foundry or Azure OpenAI resources that expose the Azure `openai/v1` endpoint.\n\n| Setting | Value |\n| --- | --- |\n| AI Provider | `AzureAI` |\n| API Key | Your key from the Azure portal or Azure AI Foundry |\n| Language Model | The Azure model or deployment name, e.g. `gpt-4o-mini` |\n| API Endpoint | e.g. `https://your-resource.openai.azure.com/openai/v1/` |\n\n\u003e Enter the Azure base URL only. AI Studio appends `/chat/completions` automatically.\n\n### Anthropic (Claude)\n\n| Setting | Value |\n| --- | --- |\n| AI Provider | `Anthropic` |\n| API Key | Your key from [console.anthropic.com/settings/keys](https://console.anthropic.com/settings/keys) |\n| Language Model | e.g. `claude-sonnet-4-6`, `claude-opus-4-6`, `claude-haiku-4-5` |\n| API Endpoint | *(not used — hardcoded to `https://api.anthropic.com/v1/messages`)* |\n\n### Ollama\n\n[Ollama](https://ollama.com) can run models locally on your machine or via the Ollama cloud.\n\n#### Local\n\n| Setting | Value |\n| --- | --- |\n| AI Provider | `Ollama` |\n| API Key | *(leave empty)* |\n| Language Model | e.g. `llama3.2`, `mistral`, `codestral` |\n| API Endpoint | `http://localhost:11434` |\n\nPull a model first with `ollama pull llama3.2`, then start Ollama before using AI Studio commands.\n\n#### Cloud\n\n| Setting | Value |\n| --- | --- |\n| AI Provider | `Ollama` |\n| API Key | Your key from [ollama.com](https://ollama.com) *(if required)* |\n| Language Model | e.g. `mistral`, `llama3.2` |\n| API Endpoint | `https://ollama.com` |\n\n\u003e AI Studio uses Ollama's native `/api/chat` endpoint. The endpoint field should be the **base URL only** — do not include `/api` or any path suffix.\n\n### Using Any Other OpenAI-Compatible Endpoint\n\nSelect `OpenAI` as the provider and change the **API Endpoint** to your private or self-hosted URL (e.g. `https://llm.internal/api/v1`). Enter the API key issued by that gateway and set the appropriate model name.\n\n## Command Cheat Sheet\n\n| Command | When to use | Output |\n| --- | --- | --- |\n| Code It | Turn TODOs or signatures into working code. | Inserts generated implementation inline. |\n| Add Comments | Document existing logic without manual XML comments. | Adds inline comments or summaries. |\n| Add Summary | Produce XML doc comments for public APIs. | Generates `\u003csummary\u003e` and related tags. |\n| Refactor | Improve readability or performance of selected code. | Replaces the selection with an optimized version. |\n| Explain | Understand unfamiliar code quickly. | Displays a plain-language explanation. |\n| Security Check | Inspect code for risky patterns and mitigations. | Lists potential vulnerabilities plus suggestions. |\n| Add Unit Tests | Generate unit tests tailored to the selected method. | Creates a new test class or method snippet. |\n\n## Feature Walkthrough\n\n### Code It\n\n1. Place the caret on an empty method or select a stub.\n2. Right-click and choose `AI Studio \u003e Code It`.\n3. Review the generated implementation and accept or adjust as needed.\n\n### Add Comments\n\n1. Highlight the code you want documented.\n2. Run `AI Studio \u003e Add Comments`.\n3. AI Studio adds concise inline comments without disturbing formatting.\n\n### Refactor\n\n1. Select a method or block.\n2. Choose `AI Studio \u003e Refactor`.\n3. Compare the result with the original and apply the pieces you want to keep.\n\n### Add Summary\n\n1. Select a method header or type declaration.\n2. Run `AI Studio \u003e Add Summary`.\n3. Automatically generates XML documentation that matches the signature.\n\n### Explain\n\n1. Highlight unfamiliar code.\n2. Choose `AI Studio \u003e Explain`.\n3. A popup summarizes what the code does and why.\n\n### Security Check\n\n1. Select code that handles I/O, crypto, or user data.\n2. Run `AI Studio \u003e Security Check`.\n3. Review the flagged issues and suggested mitigations.\n\n### Unit Test Generation\n\n1. Highlight a method to test.\n2. Run `AI Studio \u003e Add Unit Tests`.\n3. AI Studio generates arrange/act/assert scaffolding tailored to the method.\n\n#### Test Configuration\n\nConfigure test generation under `Tools \u003e Options \u003e AI Studio \u003e Unit Test`.\n\n![Unit Test Settings](https://user-images.githubusercontent.com/4971326/232892595-9e304843-8b0d-4420-b058-a0f44688f46e.png)\n\n- **Custom instructions** let you specify frameworks (xUnit, NUnit, MSTest), naming rules, or mocking preferences.\n- **Response behavior** controls how aggressively tests are regenerated versus appended.\n\n## Configuration\n\nAll configuration lives under `Tools \u003e Options \u003e AI Studio`:\n\n- **General**\n  - Paste your API key, pick the default model, and decide whether to format AI changes automatically.\n  - Toggle telemetry/diagnostics and adjust temperature or response size if needed.\n- **Commands**\n  - Override the system prompt for each command, enforce coding guidelines, or switch to a custom model per command.\n- **Unit Test**\n  - Choose the target test framework, namespace, class name template, and add reusable instructions for deterministic tests.\n\n## Advanced Customization\n\n- **Custom prompts per command**: Tailor Refactor to focus on performance while Configure Comments to prioritize XML docs using `Tools \u003e Options \u003e AI Studio \u003e Commands`.\n- **Bring your own endpoint**: Point the extension at a private/self-hosted LLM gateway or any OpenAI-compatible proxy by entering the base URL and model ID in the General page.\n- **Formatting control**: Enable *Format changed text* to run Visual Studio formatting on every AI edit to keep diffs clean.\n- **Response behavior**: Decide whether AI should insert results inline, append to the Output window first, or prompt for confirmation.\n\n![Command Settings](https://github.com/ekondur/AI-Studio/assets/4971326/0b49f17d-fa00-40dd-a1d3-ff8aa7e43f2d)\n\n## Troubleshooting and Feedback\n\n- Verify your API key and quota if requests fail; the Output tool window surfaces errors returned by the provider.\n- Ensure Visual Studio can reach your provider endpoint (corporate proxies may need to allowlist it).\n- Capture screenshots/logs and [open an issue](https://github.com/ekondur/AI-Studio/issues) for bugs or ideas.\n- Contributions are welcome via pull requests; please include before/after screenshots for UI tweaks.\n\n## License\n\nAI Studio is released under the [MIT License](LICENSE). Use it in personal or commercial projects with attribution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekondur%2Fai-studio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekondur%2Fai-studio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekondur%2Fai-studio/lists"}