3biubiu / vscode-js-console-utils

VS Code extension to help insert and remove console.* statements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vscode-js-console-utils

Secondary development based on @whtouche project

Video_20230711_093230_316.gif

Installing

This extension is available for free in the [Visual Studio Code Marketplace]

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(  `%c *variable* ` ,'background: #3b8eea; line-height: 22px;border-radius:4px;font-weight: 600',variable);
  • image-20230711214133309

Without selection:

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

To remove console.logs:

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

Config output template:

image-20230711213727444

License

MIT License

About

VS Code extension to help insert and remove console.* statements

License:MIT License


Languages

Language:JavaScript 100.0%