ZenTime is a professional VS Code extension that measures alignment with clean coding philosophies, estimates Big O time complexity, and flags line-by-line performance bottlenecks across all programming languages.
🚀 Features
- Offline Heuristic Analysis (Real-time): Calculates loop nesting depth, detects logarithmic divisions, and identifies recursion structures instantly as you type.
- AI-Powered Gemini Analysis (On-save / On-demand): Delivers deep semantic analysis, complex Big-O estimates, and context-aware refactoring tips.
- VS Code UI Integrations:
- Inlay Hints: Displays faint inline text right next to loops and functions indicating their complexity (e.g.
‣ O(N²)). - Hover Tooltips: Shows detailed explanations and quick action links on hover.
- Complexity Dashboard: Side-bar panel showing active file Zen Score, functions list, and bottlenecks.
- Side-by-side Refactoring: Automatically compares refactored code next to original files using native VS Code diffing.
- Inlay Hints: Displays faint inline text right next to loops and functions indicating their complexity (e.g.
🛠️ Configuration Settings
This extension contributes the following settings:
zentime.geminiApiKey: Your Gemini API Key for AI-driven complexity suggestions.zentime.enableAi: Toggle whether to utilize Gemini AI analysis.zentime.aiAnalysisOnSave: Trigger AI analysis automatically when saving code files.zentime.complexityThreshold: Minimum complexity level (e.g.O(N²)) to trigger warning diagnostics.zentime.showInlayHints: Toggle inline complexity label decorations.
📦 How to Install the Package (.vsix)
- Open the Extensions view in VS Code (
Ctrl+Shift+X). - Click the
...(Views and More Actions) button in the top-right corner. - Select Install from VSIX....
- Choose the generated
zentime-1.0.0.vsixfile.