vscode-wrap-console-log-simple
v1.6.26
Published
Wrap to console.log(or any function name) by word or selection
Downloads
1
Readme
Demo
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