Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CommentsCleanerNew to Visual Studio Code? Get it now.
CommentsCleaner

CommentsCleaner

CommentCleaner

|
1,660 installs
| (3) | Free
Use this extension to quickly remove all AI-generated comments at once, except the important ones starting with //!, saving your time and effort.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🧹 Comment Cleaner for VSCode

Effortlessly remove all comments, but keep the important ones marked with //!


What is Comment Cleaner?

Tired of messy code with too many comments?

This VSCode extension deletes all comments from your code — but smartly keeps the ones you mark as important with //!.

Removes // and /* ... */ comments
Keeps only comments starting with //!

Clean code, made easy.


Why Developers Love It

  • One-click to clean up clutter
  • Keeps the useful stuff (//!)
  • Works in seconds – just press a shortcut

How It Works

Method 1: Use Command Palette

Press: Ctrl + Shift + P
Type: Remove All Comments Except //!
Hit: Enter

Command Palette GIF


Method 2: Use Shortcut Key

Just press: Ctrl + Alt + S
Boom 💥 — Clean code!

Shortcut Demo


🛠️ How to Install

From VSCode Marketplace

  1. Open VSCode
  2. Go to Extensions: Ctrl + Shift + X
  3. Search: CommentsCleaner
  4. Click Install

🗂️ Install via .vsix File

  1. Download .vsix from Releases
  2. In VSCode, open Command Palette: Ctrl + Shift + P
  3. Select: Install from VSIX
  4. Choose the file → Done!

How to Use

  • Open any code file
  • Press shortcut or use command
  • Comments are removed — except the ones you really care about (//!)

Troubleshooting

Not working?

  • Restart VSCode
  • Make sure it's installed correctly

Accidentally deleted important comments?

  • Only //! is preserved — use that!

💬 Feedback & Love Letters

Mail: connectwithsiddh@gmail.com

I'd love to hear from you ❤️


Connect with Me

  • GitHub: Explore my Projects
  • LinkedIn: Let's Connect on LinkedIn

📄 License

Licensed under the MIT License

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