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

|
27 installs
| (0) | Free
Advanced AI coding assistant with Multi-LLM support (OpenAI, Anthropic, Ollama), intelligent routing, cost tracking, semantic search, Git integration, and 20+ AI-powered features. Your complete coding companion.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🚀 AI Code Assure - Advanced AI Coding Assistant for VS Code

AI Code Assure is a comprehensive, production-ready VS Code extension that brings enterprise-grade AI capabilities to your development workflow. With 11 powerful features and 31 commands, it transforms VS Code into an intelligent coding environment.

License: MIT Version VS Code


✨ Features Overview

🎯 Phase 1: Foundation Features

1. Code Refactoring

AI-powered code improvements for better readability and maintainability.

  • Modern syntax updates
  • Design pattern suggestions
  • Complexity reduction
  • Best practices enforcement

2. Bug Detection & Fixes

Comprehensive bug analysis with security focus.

  • Common bug detection (null refs, off-by-one, type issues)
  • Security vulnerability scanning (SQL injection, XSS, CSRF)
  • Logic error identification
  • Resource leak detection
  • Severity ratings (Critical/High/Medium/Low)

3. Test Generation

Automatic unit test creation for multiple frameworks.

  • Framework detection (Jest, pytest, JUnit, xUnit, Go testing)
  • Complete test suite generation
  • Edge case coverage
  • Mock setup included
  • 100% code coverage goal

4. Code Review

Professional code review with actionable feedback.

  • Quality assessment (0-100 score)
  • Performance analysis
  • Security review
  • Best practices validation
  • Maintainability metrics

5. Documentation Generation

Auto-generate professional documentation.

  • JSDoc for JavaScript/TypeScript
  • Python docstrings (Google/NumPy style)
  • Javadoc for Java
  • XML docs for C#
  • Includes examples and edge cases

6. Code Optimization

Performance improvements and efficiency gains.

  • Algorithmic optimization (Big O analysis)
  • Memory usage reduction
  • I/O optimization
  • Concurrency improvements
  • Before/after complexity comparison

🗂️ Phase 2: Context Management

7. File Indexing System

Real-time workspace intelligence.

  • Auto-indexes all code files
  • Tracks functions, classes, imports, exports
  • File relationship mapping
  • Live updates on file changes
  • Multi-language support (TS, JS, Python, Java, Go, Rust, C#, PHP)

8. Context Builder

Smart context for AI operations.

  • Related file detection
  • Dependency analysis
  • Symbol tracking across files
  • Relevance scoring
  • Smart prompt enhancement

9. Multi-File Operations

Project-wide code transformations.

  • Cross-file symbol renaming
  • Multi-file refactoring
  • Pattern-based search & fix
  • Feature planning across files
  • Dependency tracking

🚀 Phase 3: Advanced Features

10. Terminal Integration

AI-powered command-line assistance.

  • Command suggestions for any task
  • Command explanation and breakdown
  • Error debugging with fixes
  • Shell script generation
  • Safety checks (risk assessment)
  • Command history

11. Semantic Code Search

Natural language code discovery.

  • "Find all authentication functions"
  • Similar code pattern detection
  • Codebase Q&A system
  • Usage example finder
  • Relevance ranking

📦 Installation

From VS Code Marketplace (Coming Soon)

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

From VSIX File

code --install-extension ai-code-assure-1.0.0.vsix

⚙️ Setup

Option 1: OpenAI (Cloud-based)

  1. Get an API key from OpenAI Platform
  2. Open VS Code Settings (Ctrl+,)
  3. Search for "AI Code Assure"
  4. Set Provider to openai
  5. Enter your API Key
  6. Choose Model (e.g., gpt-3.5-turbo, gpt-4)

Option 2: Ollama (Local/Private)

  1. Install Ollama
  2. Pull a model: ollama pull codellama
  3. Start Ollama server: ollama serve
  4. In VS Code Settings:
    • Set Provider to ollama
    • Set Ollama URL (default: http://localhost:11434)
    • Choose Ollama Model (e.g., codellama, llama2)

🎯 Usage Guide

Single-File Operations

Code Refactoring

  1. Select code to refactor
  2. Right-click → "AI Code Assure: Refactor Code"
  3. View suggestions in chat
  4. Apply changes

Find and Fix Bugs

  1. Select code to analyze
  2. Right-click → "AI Code Assure: Find and Fix Bugs"
  3. Review severity-rated issues
  4. See fixes with explanations

Generate Unit Tests

  1. Select function/class
  2. Right-click → "AI Code Assure: Generate Unit Tests"
  3. Choose to:
    • Create test file
    • Copy to clipboard
    • View only

Code Review

  1. Select code
  2. Right-click → "AI Code Assure: Review Code"
  3. Get comprehensive analysis with score

Generate Documentation

  1. Select code
  2. Right-click → "AI Code Assure: Generate Documentation"
  3. Choose to apply, copy, or view

Optimize Code

  1. Select code
  2. Right-click → "AI Code Assure: Optimize Code"
  3. Review performance improvements

Multi-File Operations

Rename Symbol Across Files

  1. Command Palette (Ctrl+Shift+P)
  2. "AI Code Assure: Rename Symbol Across Files"
  3. Enter old and new names
  4. Confirm changes

Multi-File Refactor

  1. Command Palette
  2. "AI Code Assure: Multi-File Refactor"
  3. Describe refactoring goal
  4. AI analyzes related files

Find and Fix Pattern

  1. Command Palette
  2. "AI Code Assure: Find and Fix Pattern"
  3. Enter regex pattern
  4. Get AI-suggested fixes

Plan Feature Implementation

  1. Command Palette
  2. "AI Code Assure: Plan Feature Implementation"
  3. Describe feature and areas
  4. Get implementation roadmap

Terminal Commands

Suggest Command

  1. Command Palette
  2. "AI Code Assure: Suggest Terminal Command"
  3. Describe what you want to do
  4. Choose from AI suggestions

Explain Command

  1. Command Palette
  2. "AI Code Assure: Explain Command"
  3. Enter command to understand
  4. Get detailed breakdown

Debug Command Error

  1. Command Palette
  2. "AI Code Assure: Debug Command Error"
  3. Paste command and error
  4. Get fixes and solutions

Generate Shell Script

  1. Command Palette
  2. "AI Code Assure: Generate Shell Script"
  3. Describe task
  4. Save or copy script

Semantic Search

Natural Language Search

  1. Command Palette
  2. "AI Code Assure: Semantic Code Search"
  3. Ask: "Find all API endpoints"
  4. Navigate to results

Find Similar Code

  1. Select code snippet
  2. Right-click → "AI Code Assure: Find Similar Code"
  3. See similar patterns

Ask About Code

  1. Command Palette
  2. "AI Code Assure: Ask About Code"
  3. Ask: "How does authentication work?"
  4. Get architectural insights

Find Usage Examples

  1. Command Palette
  2. "AI Code Assure: Find Usage Examples"
  3. Enter function/class name
  4. See all usages

Context & Analysis

Show File Context

  • Command: "AI Code Assure: Show File Context"
  • See current file context with related files

Show Symbol Context

  • Command: "AI Code Assure: Show Symbol Context"
  • Get context for symbol at cursor

Find Dependencies

  • Command: "AI Code Assure: Find Dependencies"
  • See what file imports and what imports it

Analyze Project Structure

  • Command: "AI Code Assure: Analyze Project Structure"
  • Get project overview and statistics

Show Index Statistics

  • Command: "AI Code Assure: Show Index Statistics"
  • View workspace indexing stats

🎨 All Available Commands (31)

Code Quality (6)

  • aiCodeAssure.explainCode - Explain Selected Code
  • aiCodeAssure.refactorCode - Refactor Code
  • aiCodeAssure.findBugs - Find and Fix Bugs
  • aiCodeAssure.generateTests - Generate Unit Tests
  • aiCodeAssure.reviewCode - Review Code
  • aiCodeAssure.generateDocumentation - Generate Documentation
  • aiCodeAssure.optimizeCode - Optimize Code

Multi-File (5)

  • aiCodeAssure.renameSymbol - Rename Symbol Across Files
  • aiCodeAssure.multiFileRefactor - Multi-File Refactor
  • aiCodeAssure.findAndFixPattern - Find and Fix Pattern
  • aiCodeAssure.planFeature - Plan Feature Implementation
  • aiCodeAssure.analyzeProjectStructure - Analyze Project Structure

Terminal (5)

  • aiCodeAssure.suggestCommand - Suggest Terminal Command
  • aiCodeAssure.explainCommand - Explain Command
  • aiCodeAssure.debugCommandError - Debug Command Error
  • aiCodeAssure.generateScript - Generate Shell Script
  • aiCodeAssure.showCommandHistory - Show Command History

Search (4)

  • aiCodeAssure.semanticSearch - Semantic Code Search
  • aiCodeAssure.findSimilarCode - Find Similar Code
  • aiCodeAssure.askAboutCode - Ask About Code
  • aiCodeAssure.findUsageExamples - Find Usage Examples

Context (5)

  • aiCodeAssure.showFileContext - Show File Context
  • aiCodeAssure.showSymbolContext - Show Symbol Context
  • aiCodeAssure.findDependencies - Find Dependencies
  • aiCodeAssure.showIndexStats - Show Index Statistics
  • aiCodeAssure.reindexWorkspace - Re-index Workspace

Core (6)

  • aiCodeAssure.openChat - Open Chat
  • aiCodeAssure.generateCode - Generate Code from Comments
  • aiCodeAssure.completeCode - Complete Current Code

⚙️ Configuration Options

AI Provider Settings

  • aiCodeAssure.provider - Choose openai or ollama (default: openai)
  • aiCodeAssure.apiKey - OpenAI API key (required for OpenAI)
  • aiCodeAssure.model - Model name (default: gpt-3.5-turbo)
  • aiCodeAssure.openaiBaseUrl - API base URL (default: https://api.openai.com/v1)

Ollama Settings

  • aiCodeAssure.ollamaUrl - Ollama server URL (default: http://localhost:11434)
  • aiCodeAssure.ollamaModel - Ollama model (default: codellama)
  • aiCodeAssure.ollamaTimeoutMs - Request timeout (default: 60000)

Feature Settings

  • aiCodeAssure.enableInlineCompletion - Enable inline code completion (default: true)
  • aiCodeAssure.maxTokens - Maximum tokens for responses (default: 10048)
  • aiCodeAssure.contextSize - Max context characters (default: 20000)
  • aiCodeAssure.systemPrompt - Custom system prompt (optional)

Logging

  • aiCodeAssure.logPath - Log file location (default: .ai-code-assure/logs/)

🔒 Security & Privacy

OpenAI Mode

  • Code snippets sent to OpenAI API for processing
  • Encrypted HTTPS communication
  • No code stored by extension
  • Review OpenAI Privacy Policy

Ollama Mode (Recommended for Privacy)

  • All processing happens locally
  • No external API calls
  • Complete data privacy
  • No internet required after model download

Safety Features

  • Command risk assessment (Low/Medium/High)
  • Confirmation dialogs for dangerous operations
  • No automatic file deletion
  • Backup recommendations before major changes

🎓 Supported Languages

Primary Support:

  • TypeScript / JavaScript / React / Vue
  • Python
  • Java
  • Go
  • Rust
  • C# / .NET
  • PHP
  • Ruby
  • C / C++

Additional Support:

  • Most languages via AI understanding
  • Generic function/class detection
  • Universal refactoring capabilities

🏗️ Architecture

AI Code Assure Extension
├── Foundation Features (Phase 1)
│   ├── Code Refactoring
│   ├── Bug Detection
│   ├── Test Generation
│   ├── Code Review
│   ├── Documentation
│   └── Optimization
├── Context Management (Phase 2)
│   ├── File Indexer (Real-time)
│   ├── Context Builder (Smart prompts)
│   └── Multi-File Operations
└── Advanced Features (Phase 3)
    ├── Terminal Integration
    └── Semantic Search

📊 Performance

  • File Indexing: Sub-second for projects < 1000 files
  • Semantic Search: 2-5 seconds typical response
  • Code Operations: 3-10 seconds depending on complexity
  • Memory Usage: ~50MB typical
  • Real-time Updates: File watcher for instant index updates

🐛 Troubleshooting

"API key not configured"

  • Check Settings → AI Code Assure → API Key
  • Ensure no extra spaces
  • Verify key is valid on OpenAI platform

"Ollama connection failed"

  • Ensure Ollama is running: ollama serve
  • Check URL in settings (default: http://localhost:11434)
  • Verify model is pulled: ollama list

Commands not appearing

  • Reload VS Code window
  • Check extension is activated
  • Look for errors in Developer Console

Indexing slow or incomplete

  • Use "Re-index Workspace" command
  • Check excluded folders in .gitignore
  • Reduce workspace size for large projects

🤝 Contributing

Contributions welcome! Please read our contributing guidelines.

Development Setup

git clone https://github.com/vbrocket/vscode-ai.git
cd vscode-ai
npm install
npm run compile

Press F5 to launch Extension Development Host.


📝 Changelog

Version 1.0.0 (Current)

  • ✅ 11 major features implemented
  • ✅ 31 commands available
  • ✅ Multi-file operations
  • ✅ Terminal integration
  • ✅ Semantic search
  • ✅ Full OpenAI and Ollama support

📄 License

MIT License - see LICENSE file for details


🙏 Acknowledgments

  • Built with VS Code Extension API
  • Powered by OpenAI GPT models or local Ollama
  • Inspired by modern AI coding assistants

📧 Support

  • Issues: GitHub Issues
  • Discussions: GitHub Discussions
  • Email: support@example.com

🌟 Show Your Support

If you find AI Code Assure helpful, please:

  • ⭐ Star the repository
  • 📢 Share with fellow developers
  • 📝 Write a review
  • 🐛 Report bugs
  • 💡 Suggest features

Made with ❤️ by developers, for developers

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