Coming Soon
Comment Cleaner Pro is a powerful extension for removing comments from source code files. Built for VS Code, Antigravity, VSCodium, and other compatible IDEs, it helps you streamline your code by efficiently removing all types of comments (line, block, and documentation) across 33 supported programming languages while preserving the core functionality of your code.
- ✅ Removes all comment types (line, block, documentation, TODO/FIXME, and AI-generated) while preserving code functionality
- ✅ Dry-run Confirmation Modal to review exact stats (affected files, comments, lines, bytes) before cleaning folders or batches
- ✅ Persistent History preserves your cleaned files list across workspace sessions
- ✅ Workspace-Local Backups safely stored in
.ccp-backups/under the workspace root - ✅ .ccpignore Support to skip files matching custom rules or defaults (like
node_modules,.git) - ✅ High-Performance Python Core runs batch operations in a single invocation with parallel worker threads
- ✅ Detailed statistics track comments, line reduction, and size impact
- ✅ Undo/Redo support to easily revert or restore changes
- 30+ Programming Languages - Supports all major languages including Python, JavaScript/JSX, TypeScript/TSX, Vue SFC, Svelte, HTML, CSS, SCSS, C/C++, Java, Ruby, Go, PHP, SQL, Swift, Rust, Kotlin, Dockerfile, TOML, GraphQL, HCL/Terraform, MDX, and more
- Intelligent Comment Detection - Accurately identifies and removes all comment types specific to each language (including JSX/HTML comments in Vue, Svelte, MDX, and script/style block comments)
- Single File Processing - Clean comments from the current active editor file
- Batch Processing - Search and select multiple files visually using a checkbox Quick Pick checklist
- Automatic Backups - Create safety backups inside the
.ccp-backups/directory before processing - Customizable Options - Adjust TODO, documentation, and unknown file processing preferences in a unified dialog
- Undo/Redo Support - Fully supports standard VS Code Undo/Redo operations in the active editor
- Modern UI Controls - Circular checkboxes with green indicators for selected options
- Unlimited History - Track all cleaned files without arbitrary limits
- Individual File Management - Remove specific files from history as needed
- Responsive Design - UI elements maintain their shape and clarity at all window sizes
- Comment Count - Track the number of comments removed per file
- Line Reduction - See exactly how many lines were removed
- File Size Impact - Measure the size reduction achieved
- Accurate Tracking - Now with improved accuracy in statistics tracking
| Category | Languages |
|---|---|
| Web Development | |
| Systems & General | |
| DevOps & Configs | |
| Scripting | |
| Data & Queries |
Support for other languages is continuously expanding!
Comment Cleaner Pro is published on both the official VS Code Marketplace and the Open VSX Registry, making it fully compatible with VS Code, Antigravity, VSCodium, Gitpod, Eclipse Theia, and any other IDE supporting VS Code extensions.
- Open your IDE's Extensions view (
Ctrl+Shift+XorCmd+Shift+X) - Search for
"Comment Cleaner Pro" - Click Install
Requirements:
- VS Code compatible IDE (v1.50.0 or higher)
- Python 3.6 or higher (available in system PATH)
- Clean Current File: Right-click anywhere inside an active editor file (or right-click the file in the Explorer tree) and choose
CCP - Clean Current File. - Clean Folder: Right-click any folder inside the Explorer tree and select
CCP - Clean Folderto process all matching files under that directory. - Clean Entire Workspace: Right-click your workspace root directory in the Explorer tree and select
CCP - Clean Entire Workspace.
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type
"Comment Cleaner Pro"or"CCP" - Select any of the cleaning actions:
Comment Cleaner Pro: Clean Current FileComment Cleaner Pro: Clean Multiple FilesComment Cleaner Pro: Clean Entire Workspace
- Configure options in the checklist dropdown and press
Enterto run.
- Click the Comment Cleaner Pro icon in the Activity Bar to open the Side Bar
- Choose "Clean Current File", "Clean Multiple Files", or "Clean Workspace"
- View your recently cleaned files in the "Cleaned Files" history section
- Revert or restore changes using VS Code's standard Undo/Redo commands (
Ctrl+Z/Ctrl+Y)
When cleaning multiple files:
- Search and select files using the multi-select checklist dialog
- Check/uncheck files in the list; selected items will float to the top
- Press
Enterto confirm file selection - Configure your cleaning options in the Quick Pick checkbox dialog
- Review the changes in the Proceed / Cancel warning modal
The extension includes a standalone Python script that can be used directly:
# Basic usage
python path/to/ccp.py "*.js"
# Process directory recursively (searches for all supported languages)
python path/to/ccp.py src/
# Process files recursively using a glob pattern
python path/to/ccp.py "src/**/*.py"
# Preserve documentation comments
python path/to/ccp.py "*.java" --keep-doc-comments
# Preserve TODO comments
python path/to/ccp.py "*.cpp" --preserve-todo
# Don't create backups
python path/to/ccp.py "*.html" --no-backup
# Force processing of unknown file types
python path/to/ccp.py "*.custom" --forceComment Cleaner Pro uses a sophisticated object-oriented architecture with dedicated language handlers to identify and remove comments while preserving code structure. The extension:
- Handles nested comment structures
- Preserves important comments like license headers when configured
- Detects and properly processes character escapes in strings
- Maintains code indentation and whitespace
- Provides accurate line count reduction statistics
- For very large files (10MB+), expect processing to take a few seconds
- Batch processing uses multi-threading for better performance
- Uses memory-efficient processing techniques for large files
Yes, but you can enable backups which create .bak files before processing.
Yes. You can use standard editor undo/redo operations (Ctrl+Z / Ctrl+Y or Cmd+Z / Cmd+Y) directly in your active editor tabs, or restore files from the .ccp-backups/ backup directory if you enabled backups during execution.
It supports 33 major languages. For unlisted languages, you can try the "process unknown files" configuration option, but results may vary.
Yes, for Single File Components (SFC) like Vue (.vue) and Svelte (.svelte). The engine uses a block-aware parser to clean HTML comments in <template>, JavaScript/TypeScript comments in <script>, and CSS/SCSS comments in <style>.
For standard HTML files (.html, .htm), only HTML comments (<!-- -->) are stripped in this version, and embedded <script> or <style> blocks are not parsed. Full support for raw HTML embedded tags is planned for a future release.
Comment Cleaner Pro:
- Processes all files locally on your machine
- Does not send any code or data externally
- Requires no authentication or online services
- Has minimal extension permissions
This project is licensed under the GNU General Public License v3.0 - a copyleft license that ensures derivative works remain open source.
Key points:
- You are free to use, modify, and distribute this software
- If you distribute modified versions, you must:
- Make your changes open source under GPL v3
- Clearly mark what changes you've made
- Keep all copyright notices intact
- Include the original license
This ensures that Comment Cleaner Pro and all derivatives remain open source, benefiting the entire community. See the LICENSE file for full details.
