Skip to content

Mathiew82/broom-console

Repository files navigation

 

Broom Console is a Visual Studio Code extension that lets you quickly clean console.* statements from your code using simple keyboard shortcuts. No configuration, no setup — just install and use.

made-for-VSCode GitHub actions License

Features

  • 🧹 Remove console.log and console.debug
  • 🔥 Remove all console.* calls (log, debug, warn, error, info)
  • ⌨️ Ready-to-use keyboard shortcuts
  • ⚡ Works only on the currently opened file
  • 🧠 Zero configuration: install and go

Usage

Remove console.log and console.debug

  • Windows / Linux: Alt + Shift + C
  • macOS: Option + Shift + C

Or via the Command Palette:

Broom Console: Remove console.log and console.debug

Remove all console.*

Includes:

  • console.log
  • console.debug
  • console.warn
  • console.error
  • console.info

Shortcut:

  • Windows / Linux: Alt + Shift + X
  • macOS: Option + Shift + X

Or via the Command Palette:

Broom Console: Remove all console methods

Example

Before

console.log("debug");
console.warn("warning");
const value = 42;
console.error(value);

After

const value = 42;

Installation

From the VS Code Marketplace:

  1. Open Extensions (Ctrl + Shift + X)
  2. Search for Broom Console
  3. Install and enjoy 🧹

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details.