Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Wrap Console Log SimpleNew to Visual Studio Code? Get it now.

Wrap Console Log Simple

WooodHead

|
7,506 installs
| (1) | Free
Wrap to console.log(or any function name) by word or selection
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Demo

demo.gif

source code

https://github.com/WooodHead/vscode-wrap-console-log-simple

original project

https://github.com/midnightsyntax/vscode-wrap-console-log

Features

This extension read the word under your cursor and insert a statement with the word:

alt + L: console.log('variable');

cmd + L: console.log('variable', variable);

alt + G: console.log('variable', arguments);

alt + E: const aaa = get('variable', 'aaa', '');

alt + A: return variable;

In settings, replace console.log with your own function name, example:

Wrap-console-log-simple: Function Name

debug

will output

debug('variable');
debug('variable', variable);

CodeXP.io

Search in 180M open source javascript projects.

https://codexp.io/npm/1/react,redux,passport

image

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft