/commentcleaner

VS Code Extension to clean comments

Primary LanguageJavaScriptMIT LicenseMIT

Comment Cleaner VS Code Extension

CommentCleaner Icon
CommentCleaner

Welcome to the CommentCleaner VS Code Extension! This extension enhances your coding experience by allowing you to seamlessly add line logging statements to your code in various programming languages.

Features

  • Remove Comments Functionality: CommentCleaner provides "Remove Comments" functionality that allows users to remove comments from the currently open code file.
  • Multi-Language Support: CommentCleaner supports multiple programming languages, including JavaScript, Python, Java, C#, Ruby, PHP, Go, Swift, Kotlin, C/C++, Rust, TypeScript, Lua, PowerShell, YAML, Dart, and Perl.
  • Language-Specific Comment Removal: The extension is designed to recognize the language of the currently open file and apply language-specific comment removal patterns.
  • Access to Active Text Editor: The extension retrieves the currently active text editor in VSCode, allowing it to operate on the content of the open file.
  • Text Replacement: CommentCleaner replaces the entire content of the open file with the modified text that no longer contains comments.

Installation

  1. Launch Visual Studio Code.
  2. Open the Extensions view by clicking on the square icon in the left sidebar or by pressing Ctrl+Shift+X (Cmd+Shift+X on macOS).
  3. Search for "CommentCleaner" in the Extensions Marketplace.
  4. Click on the "Install" button for the CommentCleaner VS Code Extension.
  5. Once installed, click on the "Reload" button to activate the extension.

Usage

To remove comments using CommentCleaner, follow these steps:

  1. Open any file in Visual Studio Code.
  2. Click on the CommentCleaner button in the editor title menu OR Press Ctrl+' (Cmd+' on macOS) to remove comments from the file.
  3. CommentCleaner will automatically clean the comments for the selected programming language.

Feedback and Contributions

Feedback and contributions are highly appreciated! If you encounter any issues, have suggestions for improvements, or would like to contribute to the project, please visit the GitHub repository for the CommentCleaner VS Code Extension.

License

This extension is released under the MIT License.

Credits

The CommentCleaner extension was created by Mihir Panchal. Special thanks to the following contributors for their valuable input and support.

Thank you for choosing the CommentCleaner VS Code Extension! We hope you find it useful and enjoy enhancing your coding experience with seamless comment cleaning . If you have any questions or need assistance, feel free to reach out. Happy coding!