Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code Complexity AnalyzerNew to Visual Studio Code? Get it now.
Code Complexity Analyzer

Code Complexity Analyzer

Suraj-Chakraborty

|
12 installs
| (0) | Free
Shows time and space complexity above functions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🚀 Code Complexity Analyzer & AI Refactorer

VS Code Extension Version GitHub stars License

🧠 Analyze time & space complexity of functions and get AI-powered suggestions to optimize them — directly inside VS Code.


✨ Features

  • ⚡ Real-time Complexity Analysis

    • Instantly calculates Time & Space Complexity for your functions.
    • Supported Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Rust.
  • 🤖 AI-Powered Refactoring

    • Get smarter code alternatives using OpenAI/Gemini.
    • Automatically replaces the selected function with the optimized version.
  • 💬 Hover Suggestions

    • Hover over any function to view detailed complexity, optimization hints, and improvement ideas.
  • 🔧 Customizable

    • Configure your own OpenAI/Gemini API key.
    • Toggle suggestions, enable/disable hover insights.

📸 Screenshots

Complexity View AI Refactor Hover Tooltip
complexity refactor refactor refactor hover

🔌 Installation

  1. Install via VS Code:

    • Search for Code Complexity Analyzer in the Extensions Marketplace.
    • Click Install.
  2. Or from CLI:

    code --install-extension code-complexity-analyzer.vsix
    
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft