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 样式
| |