Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Remove Log and DebuggerNew to Visual Studio Code? Get it now.
Remove Log and Debugger

Remove Log and Debugger

Aditya marzuk mulyo saputra

|
6 installs
| (0) | Free
Remove all console.log, print, and debug lines from your codebase with one command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🧹 Remove Log and Debugger

A simple VS Code extension that automatically removes all console.log, console.error, and debugger statements from your JavaScript and TypeScript files — perfect for cleaning up production code before deployment.


Demo

✨ Features

  • 🧼 Instantly remove all console.* and debugger statements.

  • ⚡ Works with .js, .ts, .vue, .py, .java, .c, .cpp, .cs, .go, .php, .rb, .swift, .kt, .rs, .dart, .sh, .r, .lua files.

  • 🕶️ One-click or command-palette execution.

  • 🧠 Built using esbuild for fast performance.

  • 🔄 Optional watch mode to automatically remove logs while you edit.


🧩 How to Use

▶️ Option 1 — From Command Palette

  1. Open your file in VS Code.
  2. Press Ctrl + Shift + P (or Cmd + Shift + P on Mac).
  3. Type Clean Logs and Debugger Statements”.
  4. Press Enter — your file will be cleaned automatically.

▶️ Option 2 — On Save (Optional)

If enabled, the extension will automatically remove all logs every time you save a file.


🛠 Requirements

  • VS Code v1.80.0 or higher
  • Node.js v16+ (for development or build)

🧾 Supported Languages

This extension supports the following file types:

.js, .ts, .vue, .py, .java, .c, .cpp, .cs, .go, .php, .rb, .swift, .kt, .rs, .dart, .sh, .r, .lua

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