smart-console-cleaner
v0.0.2
Published
Quickly detect and remove console.log, console.warn, and console.error statements from your code.
Maintainers
Readme
🧹 Smart Console Cleaner
A Visual Studio Code Extension to instantly remove console.log statements from your code.
Clean debugging logs before pushing to production — in just one command.
📖 Overview
Smart Console Cleaner helps developers quickly remove all console.log statements from their JavaScript and TypeScript projects. No more manually hunting through files before committing your code!
✨ Features
| Feature | Description |
|---|---|
| ⚡ Instant Removal | Removes all console.log statements in one click |
| 🎯 Command Palette | Accessible via Ctrl + Shift + P |
| 🪶 Lightweight | Minimal footprint, maximum speed |
| 🔧 JS / TS Support | Works seamlessly with JavaScript & TypeScript |
📦 Install from npm
npm install smart-console-cleaner🔗 NPM Package: https://www.npmjs.com/package/smart-console-cleaner
🚀 Installation & Usage
⚠️ Note: This extension is not yet published on the VS Code Marketplace. You need to run it locally in Extension Development Mode.
Step 1 — Clone the Repository
git clone <your-repository-url>
cd smart-console-cleanerStep 2 — Install Dependencies
npm installStep 3 — Launch the Extension
- Open the project folder in Visual Studio Code
- Press
F5 - A new Extension Development Host window will open automatically
Step 4 — Run the Command
- Open any JavaScript or TypeScript file
- Open the Command Palette:
Ctrl + Shift + P- Type and search for:
Smart Console Cleaner- Press Enter or click the command
✅ All
console.logstatements will be automatically removed from your file!
💡 Example
🔴 Before Cleaning
console.log("User data:", user);
function test() {
console.log("Testing...");
}🟢 After Cleaning
function test() {
}🛠️ Requirements
- Visual Studio Code
v1.110.0or higher - Node.js installed on your machine
⚠️ Known Issues
The current version supports removal of only the following statement:
console.log()The following console methods are not yet supported in v0.0.1:
console.error()
console.warn()
console.debug()🔔 Support for additional console methods is planned for a future release.
📋 Release Notes
v0.0.1 — Initial Release
- ✅ Remove all
console.logstatements via Command Palette
👤 Author
Sakabda Das Frontend Developer
Made with ❤️ to keep your code clean and production-ready.
