Skip to content

Instantly share code, notes, and snippets.

@aroraayush
Last active August 2, 2018 06:41
Show Gist options
  • Save aroraayush/300f3a2a21164301f006419087169156 to your computer and use it in GitHub Desktop.
Save aroraayush/300f3a2a21164301f006419087169156 to your computer and use it in GitHub Desktop.
vs_code_keybindings
// Place your key bindings in this file to overwrite the defaults
[
{ // console.log(#cursor)
"key": "alt+c",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "console.log(${0:}$SELECTION);"
}
},
{ // alert(#cursor)
"key": "alt+a",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "alert(${0:}$SELECTION);"
}
},
{
"For_of_Loop": {
"prefix": "forof",
"body": [
"for (const ${2:element} of ${1:array}) {",
"\t$0",
"}"
],
"description": "For Loop"
},
},
{ // PHP
//echo "$varName ":#cursor;
"key": "alt+e",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "echo '$${0:}$SELECTION :'.$${0:};"
}
},
{ // PHP
//var_dump(#cursor);
"key": "alt+v",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "var_dump($${0:}$SELECTION);"
}
},
{
"key": "alt+shift+d",
"command": "editor.action.copyLinesDownAction"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment