1.6.26 • Published 1 year ago

vscode-wrap-console-log-simple v1.6.26

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 + E: console.log('variable');

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

alt + A: new line;

alt + W: // comment line

cmd + J: console.log('variable', JSON.stringify(variable, null, 2));

alt + F: expect(variable).toBeDefined();

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.link

Search in 180M open source javascript projects.

https://codexp.link

image

1.6.26

1 year ago