Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Console Log CleanerNew to Visual Studio Code? Get it now.
Console Log Cleaner

Console Log Cleaner

Ashwin Leo

| (0) | Free
Remove console.log, console.error, and console.warn statements with one command
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Console Log Cleaner

Remove console.log, console.error, console.warn, console.info, and console.debug statements with one command.

Features

  • Remove All Console Logs – Deletes all console statements in the current file
  • Supports: console.log, console.error, console.warn, console.info, console.debug

Usage

  1. Open a file with console statements
  2. Run the command: Remove All Console Logs
    • Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
    • Type "Remove All Console Logs" and press Enter
  3. All console statements in the file are removed

Development

npm install
npm run compile

Run from source

  1. Open this folder in VS Code
  2. Press F5 to launch Extension Development Host
  3. In the new window, open a file with console logs and run "Remove All Console Logs"

Package for publishing

npm install -g @vscode/vsce
vsce package

Publishing

  1. Create a Visual Studio Marketplace publisher account (free)
  2. Run vsce publish to publish the extension
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft