Skip to content

Instantly share code, notes, and snippets.

@zs-dima
Last active April 5, 2022 07:04
Show Gist options
  • Save zs-dima/3d8c874a9464c2775432d44a907bd2e1 to your computer and use it in GitHub Desktop.
Save zs-dima/3d8c874a9464c2775432d44a907bd2e1 to your computer and use it in GitHub Desktop.
[
{
"key": "ctrl+shift+l",
"command": "editor.action.transformToLowercase"
},
{
"key": "ctrl+shift+u",
"command": "editor.action.transformToUppercase"
},
{
"key": "alt+x",
"command": "extension.multiCommand.execute",
"args": {
"command": "multiCommand.makeCodegenFocusTerminal"
},
"when": "!terminalFocus"
},
{
"key": "alt+x",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "make codegen\n"
},
"when": "terminalFocus"
},
{
"key": "alt+v",
"command": "extension.multiCommand.execute",
"args": {
"command": "multiCommand.makeBuildFocusTerminal"
},
"when": "!terminalFocus"
},
{
"key": "alt+v",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "make build\n"
},
"when": "terminalFocus"
},
]
// MultiCommand
"multiCommand.commands": [
{
"command": "multiCommand.makeCodegenFocusTerminal",
"sequence": [
"workbench.action.terminal.focus",
"workbench.action.focusActiveEditorGroup",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "make codegen\n"
}
}
]
},
{
"command": "multiCommand.makeBuildFocusTerminal",
"sequence": [
"workbench.action.terminal.focus",
"workbench.action.focusActiveEditorGroup",
{
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "make build\n"
}
}
]
}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment