https://github.com/karanmahato44/console-toggle
Quickly comment/uncomment console statements in your JavaScript/TypeScript codebase.

Features
Toggle Console Statements
- Selected text - Toggle console statements in selection
- Entire file - Toggle all console statements
- Comment All - Comment all console statements regardless of current state
- Uncomment All - Remove all comment markers from console statements
Remove All
- Remove All from File - Completely remove all console statements from current file
- Remove All from Project - Recursively remove all console statements from entire project
Usage
Default keybindings (change to your liking)
- Linux / Winbloat:
Ctrl + Alt + C
- Mac:
Cmd + Option + C
Command Palette

Console Toggle: Toggle
Console Toggle: Comment All
Console Toggle: Uncomment All
Console Toggle: Remove All from File
Console Toggle: Remove All from Project

Settings
console.error and console.warn are ignored by default. Enable in settings if needed.

Supported Languages
JavaScript/TypeScript ecosystem only.
| |