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
- Download the
.vsix
file or find it on the Visual Studio Marketplace.
- Open Visual Studio Code.
- Go to Extensions (
Ctrl + Shift + X
) ➡️ Click on the ...
menu ➡️ Install from VSIX.
- Select the downloaded file.
- 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
<?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:
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
- Download file
.vsix
atau cari di Visual Studio Marketplace.
- Buka Visual Studio Code.
- Buka Extensions (
Ctrl + Shift + X
) ➡️ Klik ...
➡️ Install from VSIX.
- Pilih file
.vsix
yang telah diunduh.
- 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:
🎉 Terima Kasih Telah Menggunakan Remove Comments Extension! 😊