Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AI Code AssureNew to Visual Studio Code? Get it now.
AI Code Assure

AI Code Assure

Ibrahim Abduallah

|
2 installs
| (0) | Free
AI Code Assure: AI-powered coding assistant for VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI Code Assure for VS Code

AI Code Assure is a VS Code extension that brings a powerful AI assistant into your editor to help you write, understand, and improve your code.

Features

AI Chat Interface

  • Dedicated Chat Panel: Interact with the AI assistant directly within VS Code
  • Context-Aware: The AI understands your current file and workspace context
  • Code-Focused: Optimized for programming-related queries and tasks
  • Provider Select: Use OpenAI or local Ollama models
  • Ollama Models: Auto-detect models and connection status

Agent Mode (Apply Edits)

  • Direct File Editing: In Agent mode, the assistant can propose JSON edits which are automatically applied
  • Workspace-Aware: Supports absolute paths or paths relative to the workspace root
  • Create or Replace: Can create new files or replace existing files’ full content
  • Open Editor Sync: Updates the visible editor after writes
  • Change Summary: Chat shows a concise per-file summary like path (+N −M)

AI Code Completion

  • Inline Suggestions: Get AI-powered code completions as you type
  • Multi-Line Completions: Complete entire functions or code blocks
  • Context-Aware: Suggestions based on your current code and project

Code Explanation

  • Explain Selected Code: Right-click on selected code to get an explanation
  • Function Documentation: Generate documentation for functions and methods
  • Complexity Analysis: Understand complex algorithms and logic

Code Generation

  • Generate from Comments: Convert natural language comments into functional code
  • Implement Interfaces: Generate implementations based on interfaces or class definitions
  • Test Generation: Create unit tests for selected functions

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "AI Code Assure"
  4. Click Install

Setup

  1. Optional (OpenAI): Get an API key from https://platform.openai.com/account/api-keys
  2. Open VS Code settings (File > Preferences > Settings)
  3. Search for "AI Code Assure"
  4. If using OpenAI, enter your API key in the "API Key" field
  5. If using Ollama, ensure the Ollama server is running (default http://localhost:11434)

Usage

AI Chat

  1. Click on the AI Code Assure icon in the activity bar
  2. Type your question or request in the chat input
  3. Press Enter to send

Code Completion

  1. Start typing code
  2. Press Alt+C to trigger AI code completion
  3. Accept suggestions with Tab

Agent Mode

  1. Switch to Agent mode using the toggle at the top of the chat
  2. Optionally add context files (Add Current File)
  3. Ask for a change or a new file; the assistant will output a JSON edits block
  4. The extension applies the edits to your workspace and shows a change summary

Explain Code

  1. Select the code you want to explain
  2. Right-click and select "AI Code Assure: Explain Selected Code"
  3. View the explanation in the AI Chat panel

Generate Code

  1. Write comments describing the code you want to generate
  2. Select the comments
  3. Right-click and select "AI Code Assure: Generate Code from Comments"

Configuration

You can configure the extension in VS Code settings:

  • provider: openai or ollama
  • apiKey: Your OpenAI API key (if provider is openai)
  • model: Model name for OpenAI-compatible providers (free-form)
  • openaiBaseUrl: OpenAI-compatible API base URL (default https://api.openai.com/v1)
  • ollamaUrl: Ollama server URL (default http://localhost:11434)
  • ollamaModel: Default Ollama model name
  • Context Size: Maximum number of characters to include as file context
  • maxTokens: Maximum tokens for model responses (OpenAI-compatible)
  • systemPrompt: Optional override for the system prompt used in chat
  • Enable Inline Completion: Toggle inline code completion

Requirements

  • Visual Studio Code 1.60.0 or higher
  • Internet connection
  • OpenAI API key

Privacy

If using OpenAI, this extension sends code snippets to OpenAI's API for processing. Please review OpenAI's privacy policy for information on how your data is handled. If using Ollama, processing occurs locally on your machine.

License

MIT

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