Tired of comments and console.log statements cluttering your codebase? Code Cleaner is a simple yet powerful Visual Studio Code extension designed to help you instantly clean up this noise from your JavaScript, JSX, and TSX files.
It's the perfect tool for making your production code cleaner and more readable with a single command.
✨ Features
Smart Comment Removal: Removes all single-line (//) and multi-line (/* ... */) comments. It's smart enough to ignore comment-like patterns inside string literals or URLs.
Dedicated console.log Removal: Strips out all console.log() statements with a separate, dedicated command.
Broad Language Support: Fully compatible with JavaScript (.js), JSX (.jsx), TypeScript (.ts), and TSX (.tsx) files.
Easy to Use: Works with two simple commands right out of the box—no configuration required.
🚀 Demo
TODO: add demo but 🍗
🛠️ How to Use
Open the file you want to clean in VS Code.
Open the Command Palette: Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
Type the name of the desired command, select it, and press Enter.
Available Commands
Command
Description
Clean Comments
Removes all comments from the currently active file.
Clean console.logs
Removes all console.log statements from the active file.
📜 Changelog
See the CHANGELOG.md file for a detailed list of changes and new features.
🐞 Reporting Bugs and Suggestions
Found a bug or have a feature request? Please create an issue on our GitHub Issues page.