Format, fix, and chat about your code with local AI or cloud providers. Get up and running in minutes.
Install the extension and get it running in 3 steps.
Open VS Code, go to the Extensions panel
(Ctrl+Shift+X), search for
Code Janitor and click Install. Or click the button
above to install directly.
Open the AI Chat panel with Ctrl+Alt+C. Select a
provider from the dropdown — Ollama for
local/offline, OpenRouter or
Groq for free cloud models.
Use Alt+D to format code, Alt+L to lint
JavaScript, or open the AI chat and ask anything about your
codebase.
Run AI completely offline with Ollama. Install Ollama first, then pull any model below.
Lightweight and fast. Great for quick fixes and simple questions on low-end hardware.
Best balance of speed and quality for coding tasks. Recommended for most users.
Meta's code-focused model. Strong at code generation and explanation.
More capable version of CodeLlama. Requires ~8GB RAM. Best for complex tasks.
Free OpenRouter model. No local install needed, just an OpenRouter API key.
Google's fast model via OpenRouter. Excellent instruction following, completely free.
Use free cloud models without installing anything locally. Both providers below have generous free tiers.
:free from the model
dropdown to use at no cost.
ollama pull qwen2.5-coder:7b (or any model
above).
Add these to your settings.json (Ctrl+Shift+P
→ Open User Settings JSON) to configure the extension manually.
Everything Code Janitor can do out of the box.
Format Python, JS, Java, C/C++, and HTML with Alt+D or
on save.
Auto-corrects syntax errors as you type with a configurable delay.
Ask questions about your codebase, get fixes, refactors, and docs generated.
Preview HTML and React files in a live webview panel with
Alt+P.
Lint JavaScript files and see issues in the Problems panel with
Alt+L.
Validate HTML, CSS, and JS dependencies with Alt+V.