Overview Version History Q & A Rating & Review
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
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "AI Code Assure"
Click Install
Setup
Optional (OpenAI): Get an API key from https://platform.openai.com/account/api-keys
Open VS Code settings (File > Preferences > Settings)
Search for "AI Code Assure"
If using OpenAI, enter your API key in the "API Key" field
If using Ollama, ensure the Ollama server is running (default http://localhost:11434
)
Usage
AI Chat
Click on the AI Code Assure icon in the activity bar
Type your question or request in the chat input
Press Enter to send
Code Completion
Start typing code
Press Alt+C to trigger AI code completion
Accept suggestions with Tab
Agent Mode
Switch to Agent mode using the toggle at the top of the chat
Optionally add context files (Add Current File)
Ask for a change or a new file; the assistant will output a JSON edits block
The extension applies the edits to your workspace and shows a change summary
Explain Code
Select the code you want to explain
Right-click and select "AI Code Assure: Explain Selected Code"
View the explanation in the AI Chat panel
Generate Code
Write comments describing the code you want to generate
Select the comments
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