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

JavaScript Complexity Analyzer

henryhale

|
1 install
| (0) | Free
Automatic Big O complexity analysis for JavaScript as you type
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

worstcase-analyzer | vs code extension

Automatically compute and display time and space complexity for JavaScript, TypeScript, JSX, and TSX code as you type in VS Code.

Features

  • Automatic Complexity Analysis:
    • Analyzes your JavaScript, TypeScript, JSX, and TSX files for time and space complexity using static analysis.
    • Results are shown as inline decorations at the end of relevant lines (e.g., loops, function calls, conditionals).
  • Live Feedback:
    • Complexity is updated automatically as you edit your code.
  • Language Support:
    • Only activates for supported language modes: JavaScript, TypeScript, JavaScript React (JSX), and TypeScript React (TSX).

Example

Complexity decorations example

Relevant lines will show decorations like:

for (let i = 0; i < n; i++) { // space: O(1), time: O(n)

Requirements

No special requirements. The extension works out of the box for supported file types.

Extension Settings

This extension does not add any custom settings yet.

Known Issues

  • Only works for JavaScript/TypeScript/JSX/TSX files.
  • Decorations may not appear for very large files or if VS Code disables them for performance.

Release Notes

0.0.1

  • Initial release: automatic time and space complexity analysis for JS/TS/JSX/TSX with inline decorations.

Enjoy!

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