Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Fix by AINew to Visual Studio Code? Get it now.
Fix by AI

Fix by AI

Rupak Dey

|
5 installs
| (0) | Free
A VSCode extension to fix code errors using multiple AI providers (Gemini, OpenAI) via right-click context menu. Supports all programming languages, optimized for C# and TypeScript.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Fix by AI - VSCode Extension

A powerful VSCode extension that allows you to fix code errors using multiple AI providers (Google Gemini, OpenAI, Blackbox, and Perplexity) through a right-click context menu and inline quick fixes. Supports all programming languages with optimized prompts.

Features

  • Multi-AI Support: Choose between Google Gemini, OpenAI, Blackbox, and Perplexity models.
  • Universal Language Support: Works with any programming language detected by VSCode.
  • Flexible Fixing: Fix selected code or the entire file at once.
  • Context Menu Integration: Right-click anywhere in the editor to access AI-powered fixes.
  • Inline Quick Fixes: Hover over error squiggles and use the lightbulb icon for instant suggestions.
  • No API Key? No Problem!: Provides a basic, default fix even without an API key.
  • Secure API Handling: Store your API keys securely in VSCode settings.

Installation

From VSCode Marketplace (Recommended)

  1. Open VSCode.
  2. Go to Extensions (Ctrl+Shift+X).
  3. Search for "Fix by AI".
  4. Click Install.

Manual Installation

  1. Download the .vsix file from the Releases page.
  2. In VSCode, go to Extensions > ... > Install from VSIX.
  3. Select the downloaded .vsix file.

Setup

  1. After installation, open VSCode settings (Ctrl+,).
  2. Search for "Fix by AI".
  3. Configure your settings:
    • fixByGemini.apiKey: Your Google Gemini API key from Google AI Studio.
    • fixByOpenAI.apiKey: Your OpenAI API key from OpenAI Platform.
    • fixByBlackbox.apiKey: Your Blackbox.ai API key.
    • fixByPerplexity.apiKey: Your Perplexity API key.

Usage

Option 1: Quick Fix (Inline)

  1. Open a code file with errors (indicated by red squiggles).
  2. Hover your mouse over the error and click the lightbulb icon that appears.
  3. Select "Fix with..." for your preferred AI provider. The fix will be applied directly.

Option 2: Context Menu (Full File or Selection)

  1. To fix a specific part of the code, select it. To fix the entire file, don't select anything.
  2. Right-click in the editor.
  3. Choose "Fix by..." for your preferred AI provider.
  4. A notification will show the progress, and a dialog will ask you to "Accept" or "Decline" the fix.

Supported Languages

  • All languages supported by VSCode syntax highlighting.
  • Special optimizations for:
    • C# (csharp, cs)
    • TypeScript (typescript, ts)

Requirements

  • VSCode 1.74.0 or higher.
  • Valid API key for your chosen AI provider.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the ISC License. See the LICENSE file for details.

Publisher

Published by Rupak2023 - GitHub

Repository

https://github.com/Rupak2023/fix-by-ai-extension

Disclaimer

This extension uses AI models to fix code. The suggestions provided may not always be perfect or optimal. Always review the suggested code changes before applying them to your project. The AI models are stateless and do not store your code or API keys.

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