Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>js console utilsNew to Visual Studio Code? Get it now.
js console utils

js console utils

yu

|
857 installs
| (1) | Free
Help insert and remove console.(*) 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 or Ctrl+Shift+L
  • The output (on a new line) will be: console.log('variable: ', variable);
  • Press Cmd+Shift+I
  • The output (on a new line) will be: console.info('variable: ', variable);

Without selection:

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

To remove console.log:

  • Press Cmd+Shift+D or Ctrl+Shift+D
  • This will delete all console.log statements in the current document

setting:

  • 在 setting.json 中添加 logger.user,will be: console.log(user->variable,variable)
  • 在 setting.json 中开启 showStyle, 添加 console 样式
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft