Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Comment Remover PlusNew to Visual Studio Code? Get it now.
Comment Remover Plus

Comment Remover Plus

Juan C Alemany

|
2 installs
| (0) | Free
Comment Remover - Remove single-line (//) and multi-line (/* */) comments from your code. Clean up code by removing comments while preserving strings.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment Remover Plus - Remove Comments from Code

Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Rating

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

  1. Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type "Remove" and select one of the available commands

Via Context Menu

  1. Right-click in the editor
  2. Select "Remove All Comments"

Via Keyboard Shortcut

  1. Press Ctrl+Shift+R (Windows/Linux) / Cmd+Shift+R (Mac)

Installation

Install directly from the VS Code Marketplace:

  1. Via VS Code Extensions:

    • Open Extensions panel (Ctrl+Shift+X / Cmd+Shift+X)
    • Search for "Comment Remover Plus"
    • Click Install
  2. 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

  • Issues: Report bugs or request features
  • Rating: If you find this extension helpful, please leave a review!

Acknowledgments

Special thanks to Aramis Negron for the inspiration and mentorship that made this extension possible. 🙏

License

MIT - See LICENSE file for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft