Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Antony's Code FixerNew to Visual Studio Code? Get it now.
Antony's Code Fixer

Antony's Code Fixer

Antony Alex

|
2 installs
| (0) | Free
AI-powered code error detection and fixing using Gemini API
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Antony's Code Fixer

An intelligent VS Code extension that uses Google's Gemini AI to automatically detect and fix code errors across your entire project, folders, or individual files.

Features

🔍 Multi-Level Analysis

  • Single File: Analyze and fix errors in the current file
  • Folder Analysis: Right-click any folder to analyze all code files within
  • Project-Wide: Analyze your entire workspace for comprehensive error detection

🤖 AI-Powered Error Detection

  • Uses Gemini AI to identify syntax errors, logical issues, and potential runtime problems
  • Supports 20+ programming languages (JavaScript, Python, Java, C++, etc.)
  • Intelligent context-aware fixes

⚡ Automatic Code Fixing

  • Generates error-free code replacements
  • Batch processing for multiple files
  • Preserves code structure and formatting

🎨 Visual Feedback

  • Highlights changed lines with clear indicators
  • Status bar notifications for pending changes
  • Progress tracking for large projects

🔄 Smart Revert System

  • One-click revert for individual files
  • Undo changes if you're not satisfied
  • Temporary backup of original code

Setup

  1. Install the Extension: Install from the VS Code marketplace or package the extension locally
  2. Get Gemini API Key:
    • Visit Google AI Studio
    • Create a new API key
  3. Configure the Extension:
    • Open VS Code settings (Ctrl+, or Cmd+,)
    • Search for "Gemini Code Fixer"
    • Enter your API key in the "Api Key" field

Usage

📄 Single File Operations

  1. Fix Current File: Ctrl+Shift+P → "Fix Code Errors with Antony's AI"
  2. Fix Selected Code: Select code and right-click → "Fix Code Errors with Antony's AI"
  3. Quick Access: Click the wand icon in the editor title bar

📁 Folder Operations

  1. Analyze Folder: Right-click any folder → "Analyze This Folder"
  2. Fix Folder: Right-click any folder → "Fix All Folder Errors"
  3. Batch Processing: Processes all supported code files in the folder

🏗️ Project-Wide Operations

  1. Analyze Project: Ctrl+Shift+P → "Analyze Entire Project"
  2. Fix Project: Ctrl+Shift+P → "Fix All Project Errors"
  3. Comprehensive: Scans your entire workspace for errors

🔄 Revert Changes

  • Status Bar: Click "Revert AI Changes" when visible
  • Command Palette: Ctrl+Shift+P → "Revert Antony's Changes"
  • Context Menu: Right-click → "Revert Antony's Changes"

Configuration

Setting Description Default
gemini-code-fixer.apiKey Your Gemini API key ""
gemini-code-fixer.model Gemini model to use "gemini-1.5-flash"
gemini-code-fixer.autoHighlight Automatically highlight changed lines true

Commands

File-Level Commands

  • antonys-code-fixer.fixErrors: Analyze and fix code errors in current file
  • antonys-code-fixer.revertChanges: Revert the last set of changes

Project-Level Commands

  • antonys-code-fixer.analyzeProject: Analyze entire project for errors
  • antonys-code-fixer.fixProject: Fix all errors in the project
  • antonys-code-fixer.analyzeFolder: Analyze specific folder
  • antonys-code-fixer.fixFolder: Fix all errors in specific folder

How It Works

  1. Analysis: The extension sends your code to Gemini AI for analysis
  2. Error Detection: Gemini identifies syntax errors, logical issues, and potential problems
  3. Code Generation: If errors are found, Gemini generates corrected code
  4. Application: The extension replaces the problematic code with the fixed version
  5. Highlighting: Changed lines are highlighted for easy identification
  6. Revert Option: Original code is stored for easy rollback

Supported Languages

The extension works with all programming languages, including:

  • JavaScript/TypeScript
  • Python
  • Java
  • C/C++
  • C#
  • Go
  • Rust
  • PHP
  • Ruby
  • And many more!

Privacy & Security

  • Code is sent to Google's Gemini API for analysis
  • No code is stored permanently by the extension
  • Original code is temporarily cached locally for revert functionality
  • Please review Google's privacy policy for Gemini API usage

Development

To build and run the extension locally:

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Package extension
vsce package

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

MIT License - see LICENSE file for details.

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