Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>complexipyNew to Visual Studio Code? Get it now.
complexipy

complexipy

rohaquinlop

|
16 installs
| (0) | Free
Real-time cognitive complexity analyzer for Python code with visual indicators for function and line-level complexity
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Complexipy VSCode Extension

A Visual Studio Code extension that provides real-time cognitive complexity analysis for Python code. This extension helps developers identify and manage code complexity by providing visual indicators for both function-level and line-level complexity.

Features

  • Real-time Complexity Analysis: Automatically analyzes Python code as you type
  • Visual Complexity Indicators:
    • Function complexity shown with ƒ symbol
    • Line-level complexity shown with + symbol
    • Color-coded indicators:
      • Green: Low complexity (functions < 15, lines ≤ 5)
      • Red: High complexity (functions ≥ 15, lines > 5)
  • Automatic Updates: Complexity analysis updates on:
    • File save
    • Active editor change
    • Text changes

Requirements

  • Visual Studio Code version 1.85.0 or higher
  • Python files to analyze

Installation

  1. Open VS Code
  2. Go to the Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "complexipy"
  4. Click Install

Usage

The extension automatically activates when you open a Python file. You'll see complexity indicators appear at the end of each line:

  • ƒ N: Function complexity score (where N is the complexity value)
  • +N: Line-level complexity score (where N is the complexity value)

Manual Analysis

You can trigger a manual analysis by:

  1. Opening the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Typing "complexipy"
  3. Selecting the "complexipy" command

Complexity Thresholds

  • Function Complexity:

    • Low: < 15
    • High: ≥ 15
  • Line Complexity:

    • Low: ≤ 5
    • High: > 5

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License - see the LICENSE file for details.

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