Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JS/TS Comment RemoverNew to Visual Studio Code? Get it now.
JS/TS Comment Remover

JS/TS Comment Remover

Michael Panches

|
1 install
| (0) | Free
Remove all comments from TypeScript and JavaScript files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JS/TS Comment Remover - Extension

A Visual Studio Code extension that removes all comments from TypeScript and JavaScript files.

Usage

Remove Comments from Current File

  • Open a TypeScript or JavaScript file in VS Code
  • Right-click in the editor
  • Select "Remove Comments" from the context menu

Remove Comments from Selected Files

  • In the Explorer panel, select one or more TypeScript/JavaScript files
  • Right-click on the selected files
  • Select "Remove Comments"

The extension will process the files and remove all single-line (//) and multi-line (/* */) comments, preserving the code structure and formatting.

Features

  • Remove comments from the current open file
  • Remove comments from multiple selected files in the Explorer
  • Supports TypeScript (.ts, .tsx) and JavaScript (.js, .jsx) files
  • Preserves code formatting and structure
  • Uses TypeScript's scanner for accurate comment detection

Installation

  1. Download the .vsix file from the releases
  2. In VS Code, go to Extensions > Install from VSIX...
  3. Select the downloaded file

Alternatively, you can package it yourself:

npm install
npm run compile
vsce package

Then install the generated .vsix file.

Requirements

  • Visual Studio Code 1.74.0 or higher

Development

To develop this extension:

  1. Clone the repository
  2. Run npm install
  3. Open in VS Code
  4. Press F5 to launch extension development host

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

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