🧹 CodeSweep
CodeSweep is a lightweight, open-source VS Code extension that helps you clean your code by removing all comments and debug logs in one click.
✨ Features
📦 Installation
Or install via the VS Code command palette: ⚙️ Usage
🖱️ Usage via menu clic droit (context menu)You can also run CodeSweep commands directly from the right-click menu inside your code editor.
This offers a quick and convenient way to clean your code without using the Command Palette. 🧩 Available CommandsCodeSweep offers 4 useful commands. You can access them all via the Command Palette ( 🔹 CodeSweep: Clean Code
✅ Recommended Command – Runs a full cleanup of your code. This command executes:
Ideal before pushing to production or sharing your code. 🔹 CodeSweep: Remove All Comments
✅ Removes all single-line and multi-line comments from the entire file. Examples removed:
🔹 CodeSweep: Remove Single Line Comments
✅ Only removes single-line comments, preserving multiline ones. Examples removed:
🔹 CodeSweep: Remove Multiline Comments
✅ Removes only multi-line comments, useful when you want to preserve inline hints. Examples removed:
🔹 CodeSweep: Remove Debug Logs
✅ Detects and removes debug logs like:
And many more, depending on language. Helps prevent accidental debug logs in production code. 💻 Supported LanguagesIncludes but not limited to:
🧠 Why CodeSweep?Because no one wants to ship 🤝 ContributingContributions are now open!
📜 LicenseMIT License – free to use, modify, and distribute. 🧪 Demo
🧩 Got Feedback or Found a Bug?Open an issue here 👉 GitHub Issues |