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
- Open a file with console statements
- 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
- All console statements in the file are removed
Development
npm install
npm run compile
Run from source
- Open this folder in VS Code
- Press
F5 to launch Extension Development Host
- 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
- Create a Visual Studio Marketplace publisher account (free)
- Run
vsce publish to publish the extension
| |