Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>AI code SuggestorNew to Visual Studio Code? Get it now.
AI code Suggestor

AI code Suggestor

Hassan RJ

|
62 installs
| (1) | Free
This extension provides AI-powered code suggestions, explanations, and optimizations using Gemini API.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Code Assistant for VS Code

An advanced VS Code extension that provides AI-powered code suggestions, explanations, and optimizations using the OpenAI Agents SDK with Gemini integration.

Features

  • Real-time Code Completions: Get intelligent code suggestions as you type
  • Code Generation: Generate code snippets based on natural language descriptions
  • Code Explanations: Get detailed explanations of selected code
  • Code Optimization: Automatically optimize your code for better performance and readability
  • Multi-language Support: Works with JavaScript, TypeScript, Python, Java, C#, and more
  • Context-aware: Understands your project structure and coding patterns

Requirements

  • VS Code 1.80.0 or higher
  • Gemini API key

Installation

  1. Install the extension from the VS Code Marketplace
  2. Press CTRL + SHIFT + P
  3. Type: preferences: Open Settings (UI)
  4. Search for apiKey and give your apikey The image showing how and where to add apikey
  5. Start coding and enjoy AI-powered assistance!

Usage

Code Completions

Just start typing, and the extension will provide intelligent code completions based on the context.

Code Generation

  1. Select text describing what you want to generate
  2. Press Ctrl+Shift+G (Cmd+Shift+G on Mac)
  3. The AI will generate code based on your description

Code Explanation

  1. Select the code you want to explain
  2. Press Ctrl+Shift+E (Cmd+Shift+E on Mac)
  3. A new panel will open with a detailed explanation

Code Optimization

  1. Select the code you want to optimize
  2. Press Ctrl+Shift+O (Cmd+Shift+O on Mac)
  3. The AI will suggest optimizations for your code

Extension Settings

This extension contributes the following settings:

  • aiCodeAssistant.apiKey: Your Gemini API key
  • aiCodeAssistant.apiBaseUrl: Base URL for the API
  • aiCodeAssistant.model: AI model to use
  • aiCodeAssistant.enableInlineCompletions: Enable/disable inline code completions
  • aiCodeAssistant.completionDelay: Delay before triggering completion
  • aiCodeAssistant.maxCacheSize: Maximum number of cached completions
  • aiCodeAssistant.cacheTTL: Cache time-to-live in minutes

Advanced Features

  • Learning System: The extension learns from your coding patterns to provide more relevant suggestions over time
  • Performance Optimization: Uses caching and debouncing to ensure minimal impact on editor performance
  • Customizable: Adjust settings to match your preferences and workflow
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft