Created
May 21, 2020 08:52
-
-
Save copperfox777/39720d38f0e4e1e72c15534b24d2d437 to your computer and use it in GitHub Desktop.
Visual Studio Code console.log variable under the cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"macros": { | |
"logCurrentVariable": [ | |
"editor.action.addSelectionToNextFindMatch", | |
"problems.action.copy", | |
"editor.action.clipboardCopyAction", | |
{ | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "console.log('$CLIPBOARD', $CLIPBOARD)$0" | |
} | |
} | |
] | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment