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...
Watch video Custom shortcuts in VS Code. Console.Log() shortcut. Code in the video description. online without registration, duration hours minute second in high quality. This video was added by user DK Programming 08 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,819 once and liked it 59 people.