What-The-Code 🚀
Welcome to What-The-Code – your AI-powered, code quality-obsessed VS Code extension.
Now with advanced code quality analysis, performance monitoring, and a one-click status bar for instant insights!
What does it do?
- Ask your code anything! (plain English, no jargon required)
- Find and zap dead code (unused stuff hiding in your files)
- Analyze code quality (type safety, complexity, duplicates, and more)
- Performance monitoring (see how fast and efficient your analysis is)
- Save file snapshots before you break things (and restore them when you do)
How to Get Started
- Install from the VS Code Marketplace
- Get a Gemini API key from Google AI Studio
- Enter your API key in VS Code settings (search for "What-The-Code")
- Press
Ctrl+Shift+Alt+K
to chat with your code, or use the sidebar for more features
- Click the “Code Quality” button in the status bar to analyze the current file
Why you’ll love it
- Talk to your codebase like it’s your buddy
- Clean up dead code (unused imports, functions, and more) with a click
- Analyze code quality (type coverage, refactoring suggestions)
- Performance insights (see analysis speed, memory usage, and more)
- Automatic backups and restore from snapshots
- Works with many languages (especially JavaScript/TypeScript)
New Features
Code Quality Analyzer:
- Type coverage, duplicate code, magic numbers, and more
- Type safety checks and refactoring recommendations
- Access via Command Palette or the new status bar button
Performance Monitoring:
- Tracks analysis speed, memory usage, and efficiency
- Historical performance comparison after each run
Status Bar Button:
- One-click “Code Quality” analysis for the current file
Meet the Humans Behind the Code
Need a hand?
- Double-check your Gemini API key
- Make sure you’re online
- Still stuck? GitHub page has answers
FAQ
What is dead code?
Code that is never used or run, like old functions or imports you forgot to delete.
Why should I care about code quality?
Good code is easier to read, fix, and build on. It helps you and your team avoid bugs and confusion.
What is a code snapshot?
A backup of your file before changes, so you can restore it if needed.
Is my code sent to the cloud or kept private?
Your code is analyzed locally. Only your questions (and the code you ask about) are sent to Gemini if you use AI features.
Do I need to know AI or machine learning to use this extension?
No! Just install, set your API key, and use the buttons or commands.
Can I use this extension offline?
Most features work offline, but AI-powered answers need an internet connection.
Will it change my code automatically?
No, it only suggests changes. You decide what to apply. Snapshots are saved before any edits.
What are magic numbers?
Numbers in code with no explanation (like 42 or 0.8). Use named constants instead so your code is clear.
How do I check code quality?
Click the “Code Quality” button in the status bar or run the command from the Command Palette.
Which languages are supported?
Works best with JavaScript and TypeScript, but many features help with other languages too.
Where do I put my Gemini API key?
In VS Code settings, search for “What-The-Code”.
Can I undo changes?
Yes! Snapshots are saved before changes, so you can restore your code.
License
MIT License. Free for everyone. Use it, break it, fix it, share it.
Just don’t blame us if you become addicted to clean code.