Created
May 13, 2020 00:57
-
-
Save mattlockyer/278a2c42e0706a840052a82cbd935a93 to your computer and use it in GitHub Desktop.
Keyboard shortcuts for vs code
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
[ | |
{ | |
"key": "ctrl+]", | |
"command": "workbench.action.terminal.focusNext" | |
}, | |
{ | |
"key": "ctrl+[", | |
"command": "workbench.action.terminal.focusPrevious" | |
}, | |
{ | |
"key": "ctrl+v", | |
"command": "workbench.action.terminal.paste", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "ctrl+v", | |
"command": "editor.action.clipboardPasteAction", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+q", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "alt+q", | |
"command": "-workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+shift+d", | |
"command": "editor.action.copyLinesDownAction", | |
"when": "editorTextFocus" | |
}, | |
/******************************** | |
Macros | |
********************************/ | |
{ | |
"key": "alt+shift+x", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "console.log(" | |
} | |
}, | |
{ | |
"key": "alt+shift+c", | |
"command": "editor.action.insertSnippet", | |
"when": "editorTextFocus", | |
"args": { | |
"snippet": "/********************************\n\n********************************/" | |
} | |
}, | |
/******************************** | |
Builds | |
********************************/ | |
{ | |
"key": "alt+e", | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "go run .\u000D" | |
} | |
}, | |
{ | |
"key": "alt+r", | |
"command": "workbench.action.terminal.sendSequence", | |
"when": "terminalFocus", | |
"args": { | |
"text": "cargo check\u000D" | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment