Skip to content

karanmahato44/console-toggle

Repository files navigation

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.

About

VS Code extension to toggle, remove console statements in JS/TS codebase.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors