Skip to content

Instantly share code, notes, and snippets.

@themegabyte
Created August 27, 2023 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themegabyte/f0b39588c085230f42f78a8a7613e34a to your computer and use it in GitHub Desktop.
Save themegabyte/f0b39588c085230f42f78a8a7613e34a to your computer and use it in GitHub Desktop.
This JSON keybinding configuration sets up a key combination (Ctrl+Shift+L) to insert a snippet that creates a console.log statement containing the selected text, if any, alongside its value, in a VSCODE
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+shift+l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log(\"${TM_SELECTED_TEXT}\", ${TM_SELECTED_TEXT});"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment