Comment Editor is a VS Code extension that removes comments from code while respecting the syntax rules of each programming language.
Features
- Removes single-line and multi-line comments.
- Language-aware rules.
- Supports JavaScript, TypeScript, Java, C, C++, C#, PHP, Ruby, Bash, and more.
Commands
| Command |
Description |
Remove Comments |
Deletes all comments in the current file |
For now, you can run it from:
- Command Palette (
Ctrl+Shift+P)
- Typing:
Remove Comments
Release Notes
1.0.0
- Initial release with comment removal.
Known Issues
- Some URLs containing
// may be detected as comments.
Future versions are under development and will include smarter parsing.
Requirements
No external dependencies.
Enjoy!
| |