Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CM Remove CommentsNew to Visual Studio Code? Get it now.
CM Remove Comments

CM Remove Comments

Reza Fahmi

|
13 installs
| (0) | Free
Remove All Comments from file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

✨ Remove Comments Extension

An easy-to-use Visual Studio Code extension to remove:

  • Single-line comments
  • Multi-line comments
  • All comments
  • Empty lines

Perfect for cleaning up messy code and making your files neat and professional!


🎉 Features

  • Effortless Cleanup: Remove comments with a single click.
  • Multi-Language Support: Works with PHP, JavaScript, Python, C, C++, HTML, and more.
  • Empty Line Remover: Get rid of those unnecessary blank lines.
  • Context Menu Access: Just right-click in the editor to use it.

🚀 How to Install

  1. Download the .vsix file or find it on the Visual Studio Marketplace.
  2. Open Visual Studio Code.
  3. Go to Extensions (Ctrl + Shift + X) ➡️ Click on the ... menu ➡️ Install from VSIX.
  4. Select the downloaded file.
  5. Enjoy a cleaner codebase!

🛠️ How to Use

  • Option 1: Right-click in the editor and choose ✨ Comment Remover >
    • Remove Single-line Comments
    • Remove Multi-line Comments
    • Remove All Comments
    • Remove Empty Lines
  • Option 2: Press Ctrl + Shift + P and search for "Remove Comments" to run the desired command.

Example

✅ Before:

<?php
// This is a single-line comment

# Another single-line comment

/*
This is a multi-line comment
It can span multiple lines
*/

// echo "This won't run!";
echo "Hello, World!";
# Some unnecessary empty lines here

🚀 After (Using Remove All Comments & Remove Empty Lines):

<?php
echo "Hello, World!";

🗒️ Notes

  • The extension only modifies the currently opened file.
  • Supports most programming languages, especially PHP.
  • Remember to save your changes!

📬 Support

If you have any questions or issues, feel free to:

  • Submit a report on our GitHub Repository




🇮🇩 Remove Comments Extension - Bahasa Indonesia

Ekstensi Visual Studio Code yang memudahkan Anda untuk:

  • Menghapus komentar satu baris
  • Menghapus komentar multi-baris
  • Menghapus semua komentar
  • Menghapus baris kosong

Cocok untuk menjaga kode tetap rapi dan profesional!




🎉 Fitur Utama

  • Bersihkan dengan Mudah: Hapus komentar hanya dengan sekali klik.
  • Dukungan Multi-Bahasa: Cocok untuk PHP, JavaScript, Python, C, C++, HTML, dan lainnya.
  • Penghapus Garis Kosong: Singkirkan garis kosong yang tidak perlu.
  • Akses dari Menu Konteks: Klik kanan di editor untuk memulai!



🚀 Cara Install

  1. Download file .vsix atau cari di Visual Studio Marketplace.
  2. Buka Visual Studio Code.
  3. Buka Extensions (Ctrl + Shift + X) ➡️ Klik ... ➡️ Install from VSIX.
  4. Pilih file .vsix yang telah diunduh.
  5. Ekstensi siap digunakan!



🛠️ Cara Menggunakan

  • Opsi 1: Klik kanan di editor dan pilih salah satu opsi berikut:
    • Hapus Komentar Satu Baris
    • Hapus Komentar Multi-Baris
    • Hapus Semua Komentar
    • Hapus Baris Kosong
  • Opsi 2: Tekan Ctrl + Shift + P ➡️ Cari "Remove Comments" untuk menjalankan perintah.



Contoh Penggunaan

✅ Sebelum:

<?php
// Ini adalah komentar satu baris

# Komentar menggunakan tanda pagar

/*
Ini adalah komentar multi-baris
dengan beberapa baris
*/

// echo "Kode ini tidak akan dijalankan!";
echo "Hello, World!";
# Garis kosong yang tidak diperlukan

🚀 Sesudah (Menggunakan Hapus Semua Komentar & Hapus Garis Kosong):

<?php
echo "Hello, World!";



🗒️ Catatan Penting

  • Ekstensi hanya menghapus komentar dari file yang sedang dibuka.
  • Sangat mendukung file berbahasa PHP.
  • Pastikan Anda menyimpan file setelah perubahan.



📬 Dukungan

Jika Anda memiliki pertanyaan atau masalah:

  • Ajukan masalah melalui GitHub Repository

🎉 Terima Kasih Telah Menggunakan Remove Comments Extension! 😊

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