In this video we are creating a custom shortcut (Ctrl-Shift-L) to place console.log() on a screen in VS Code.
Here is the code for the shortcut:
[
{
"key": "ctrl+shift+l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log(${TM_SELECTED_TEXT}$1);"
}
}
]
VS Code site mentioned in the video: https://code.visualstudio.com/docs/ge...