A VSCode extension that removes comments from your code with just one ☝🏼 click! Supports multiple languages including JavaScript, Python, CSS, TypeScript, Golang and HTML
Features
Removes Comments: One-click solution to remove all comments from your code.
Support Languages:
JavaScript and TypeScript: Removes // (single-line) and /* ... */ (multi-line) comments.
Python: ATM it only removes # (single-line) comments and will support """ ... """ and ''' ... ''' comments in the future.
Status Bar: You can remove your comments by clicking the button Remove Comments on the right side of your status bar.
Command: You can also remove comments by pressing ctrl + shift + p and search for remove comments
Formatting: We also provide code formatting after comment removal!
Future Features
1. Selective Comment Removal
Feature: Allows you the user to selectively remove one single-line or multi-line comments, rather than remove all comments from the file.
Why?: This feature would provide a lot more control over what gets removed, especially for those who want to keep specific comment types whilst removing others.
2. Support for Block Comments in Non-Supported Languages
Feature: Extend support for languages like Ruby and others that use different commenting styles (e.g., =begin ... =end) in Ruby
Why?: Adding support for more languages ensures that the extension works for broader set of languages, like Ruby for example which uses non-standard commenting patterns. Yes it may work for # comments in Ruby but for =begin ... =end it will not.
3. Pre-Removal Preview
Feature: Provides you the user with a preview of what the file will look like after the comments are removed before they actually apply the change just like preview markdown extensions before.
Why?: A preview step helps users confirm their changes and ensures no accidental loss of important information.
Known Issues
Multi-Line Comments In Python: Multi-Line comments in python (e.g., """ ... """, ''' ... ''') are not currently supported.
Performance on Large Files: While we've optimized for large files, performance could still degrade for a few moments or whilst removing comments in extremely large codebases.
Source Code
We will be releasing the Source Code in the next fewer updates so be prepared to check out my github! github