Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JS console helperNew to Visual Studio Code? Get it now.
JS console helper

JS console helper

epochi

|
587 installs
| (0) | Free
Help insert and remove console.dir statements
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-js-console-utils

Easily insert and remove console.log statements

Usage

With selection:

  • Highlight a variable (or really any text)

  • Press Cmd+Shift+L

  • The output (on a new line) will be: console.dir(variable >>>>>>>>>>); console.dir(variable); console.dir(variable <<<<<<<<<<);

Without selection:

  • Press Cmd+Shift+L
  • The output (on the same line) will be: console.dir();

To remove console.logs:

  • Press Cmd+Shift+D
  • This will delete all console.log statements in the current document
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft