Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Console ToggleNew to Visual Studio Code? Get it now.
Console Toggle

Console Toggle

Karan Mahato

|
1 install
| (0) | Free
Quickly comment/uncomment console statements in your JavaScript/TypeScript codebase
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

https://github.com/karanmahato44/console-toggle

Quickly comment/uncomment console statements in your JavaScript/TypeScript codebase.

Demo

Features

Toggle Console Statements

  • Selected text - Toggle console statements in selection
  • Entire file - Toggle all console statements

Comment/Uncomment All

  • 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

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

Context Menu

Context Menu

Settings

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

Settings

Supported Languages

JavaScript/TypeScript ecosystem only.

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