Created
April 22, 2018 09:53
-
-
Save dsdeur/6107c21e350c16b831874c44c182917b to your computer and use it in GitHub Desktop.
This file contains 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
// javascript.json | |
{ | |
/* A VSCode snippet that makes it easy to time some lines of Javascript code. | |
* | |
* Usage: | |
* 1. Cut the lines you want to time: select, cmd + x | |
* 2. Type `ctime` and press enter/tab/whatever your autocomplete key is. | |
*/ | |
"Wrap console time": { | |
"prefix": "ctime", | |
"body": [ | |
"console.time('${1}');", | |
"$CLIPBOARD", | |
"console.timeEnd('${1}');", | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment