
A powerful VS Code extension that intelligently removes comments from your code while preserving code quality and readability.
✨ Features
- 🗑️ Remove all comments (both single-line
// and multi-line /* */ )
- 📝 Selective removal - Remove only single-line or multi-line comments
- 🧠 Smart string detection - Preserves comment-like text inside strings
- 🧹 Auto cleanup - Removes empty lines left after comment removal
- ⚡ Multiple access methods - Command palette, context menu, keyboard shortcuts
- 🎯 Language agnostic - Works with JavaScript, TypeScript, C, C++, Java, and more
Commands
- Remove All Comments: Removes both single-line and multi-line comments
- Remove Single Line Comments: Removes only
// style comments
- Remove Multi-line Comments: Removes only
/* */ style comments
Keyboard Shortcuts
Ctrl+Shift+R (Windows/Linux) / Cmd+Shift+R (Mac): Remove All Comments
Usage
Via Command Palette
- Open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P )
- Type "Remove" and select one of the available commands
- Right-click in the editor
- Select "Remove All Comments"
Via Keyboard Shortcut
- Press
Ctrl+Shift+R (Windows/Linux) / Cmd+Shift+R (Mac)
Installation
Install directly from the VS Code Marketplace:
Via VS Code Extensions:
- Open Extensions panel (
Ctrl+Shift+X / Cmd+Shift+X )
- Search for "Comment Remover Plus"
- Click Install
Via Command Line:
code --install-extension juancalemany.comment-remover-plus
Example
Before:
// This is a comment
const message = "Hello World"; // Another comment
/*
* Multi-line comment
*/
After using "Remove All Comments":
const message = "Hello World";
Support
Acknowledgments
Special thanks to Aramis Negron for the inspiration and mentorship that made this extension possible. 🙏
License
MIT - See LICENSE file for details.
| |