aboutsummaryrefslogtreecommitdiff
path: root/linux/home/.config/Code/User/keybindings.json
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
commit19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch)
treef234cad1bdad88114a63c9702144da487024967a /linux/home/.config/Code/User/keybindings.json
parent5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff)
downloaddotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz
dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip
Linux-specific dotfiles
Diffstat (limited to 'linux/home/.config/Code/User/keybindings.json')
-rw-r--r--linux/home/.config/Code/User/keybindings.json274
1 files changed, 274 insertions, 0 deletions
diff --git a/linux/home/.config/Code/User/keybindings.json b/linux/home/.config/Code/User/keybindings.json
new file mode 100644
index 0000000..9d04af3
--- /dev/null
+++ b/linux/home/.config/Code/User/keybindings.json
@@ -0,0 +1,274 @@
+[
+ {
+ "key": "ctrl+shift+r",
+ "command": "workbench.action.reloadWindow",
+ "when": "editorTextFocus"
+ },
+ {
+ "key": "ctrl+i",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .py",
+ "args": {
+ "text": "python \"${file}\" < ./i\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "python.execInTerminal",
+ "when": "resourceExtname == .py",
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .dart",
+ "args": {
+ "text": "dart \"${file}\"\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .js",
+ "args": {
+ "text": "node \"${file}\"\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .java",
+ "args": {
+ "text": "java \"${file}\"\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .sh",
+ "args": {
+ "text": "\"${file}\"\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .cpp",
+ "args": {
+ "text": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .c",
+ "args": {
+ "text": "gcc -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n"
+ }
+ },
+ {
+ "key": "f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .asm",
+ "args": {
+ "text": "nasm -f elf64 \"${file}\" && ld -o \"${fileDirname}/${fileBasenameNoExtension}\" \"${fileDirname}/${fileBasenameNoExtension}.o\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n"
+ }
+ },
+ {
+ "key": "ctrl+i",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .cpp",
+ "args": {
+ "text": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\" < ./i\n"
+ }
+ },
+ {
+ "key": "ctrl+g",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .cpp",
+ "args": {
+ "text": "g++ -g \"${file}\" -o \"${fileDirname}/${fileBasenameNoExtension}\" -lgraph -lGL -lGLU -lglut && \"${fileDirname}/${fileBasenameNoExtension}\" 2>/dev/null\n"
+ }
+ },
+ // {
+ // "key": "f5",
+ // "command": "workbench.action.tasks.runTask",
+ // "when": "resourceExtname == .cpp",
+ // "args": "Build and Run C++"
+ // },
+ {
+ "key": "shift+f5",
+ "command": "workbench.action.terminal.sendSequence",
+ "when": "resourceExtname == .cpp",
+ "args": {
+ "text": "g++ -g \"${fileDirname}/*.cpp\" -o \"${fileDirname}/${fileBasenameNoExtension}\" && \"${fileDirname}/${fileBasenameNoExtension}\"\n"
+ }
+ },
+ // {
+ // "key": "shift+f5",
+ // "command": "workbench.action.tasks.runTask",
+ // "when": "resourceExtname == .cpp",
+ // "args": "Build and Run C++ (Multiple cpp files)"
+ // },
+ {
+ "key": "f4",
+ "command": "workbench.action.debug.continue",
+ "when": "inDebugMode"
+ },
+ {
+ "key": "f4",
+ "command": "workbench.action.debug.start",
+ "when": "!inDebugMode"
+ },
+ {
+ "key": "f4",
+ "command": "workbench.action.debug.start",
+ "when": "debuggersAvailable && !inDebugMode"
+ },
+ {
+ "key": "f5",
+ "command": "-workbench.action.debug.continue",
+ "when": "inDebugMode"
+ },
+ {
+ "key": "f5",
+ "command": "-workbench.action.debug.start",
+ "when": "!inDebugMode"
+ },
+ {
+ "key": "f5",
+ "command": "-workbench.action.debug.start",
+ "when": "debuggersAvailable && !inDebugMode"
+ },
+ {
+ "key": "shift+f4",
+ "command": "workbench.action.debug.stop",
+ "when": "inDebugMode"
+ },
+ {
+ "key": "shift+f5",
+ "command": "-workbench.action.debug.stop",
+ "when": "inDebugMode"
+ },
+ {
+ "key": "ctrl+v",
+ "command": "workbench.action.terminal.paste",
+ "when": "terminalFocus && terminalProcessSupported"
+ },
+ {
+ "key": "ctrl+shift+v",
+ "command": "-workbench.action.terminal.paste",
+ "when": "terminalFocus && terminalProcessSupported"
+ },
+ {
+ "key": "ctrl+alt+up",
+ "command": "editor.action.copyLinesUpAction",
+ "when": "editorTextFocus && !editorReadonly"
+ },
+ {
+ "key": "ctrl+alt+down",
+ "command": "editor.action.copyLinesDownAction",
+ "when": "editorTextFocus && !editorReadonly"
+ },
+ {
+ "key": "ctrl+shift+alt+up",
+ "command": "-editor.action.copyLinesUpAction",
+ "when": "editorTextFocus && !editorReadonly"
+ },
+ {
+ "key": "ctrl+shift+alt+down",
+ "command": "-editor.action.copyLinesDownAction",
+ "when": "editorTextFocus && !editorReadonly"
+ },
+ {
+ "key": "ctrl+,",
+ "command": "-workbench.action.openSettings"
+ },
+ {
+ "key": "ctrl+,",
+ "command": "workbench.action.openSettingsJson"
+ },
+ {
+ "key": "ctrl+i",
+ "command": "-editor.action.triggerSuggest",
+ "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
+ },
+ {
+ "key": "ctrl+c",
+ "command": "workbench.action.terminal.copySelection",
+ "when": "terminalFocus && terminalProcessSupported && terminalTextSelected && terminalTextSelected"
+ },
+ {
+ "key": "ctrl+shift+c",
+ "command": "-workbench.action.terminal.copySelection",
+ "when": "terminalFocus && terminalProcessSupported && terminalTextSelected && terminalTextSelected"
+ },
+ {
+ "key": "ctrl+k",
+ "command": "workbench.action.terminal.kill",
+ "when": "terminalIsOpen && terminalFocus"
+ },
+ {
+ "key": "delete",
+ "command": "-workbench.action.terminal.killInstance",
+ "when": "terminalIsOpen && terminalTabsFocus || terminalProcessSupported && terminalTabsFocus"
+ },
+ {
+ "key": "ctrl+shift+i",
+ "command": "-editor.action.formatDocument.none",
+ "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
+ },
+ {
+ "key": "ctrl+shift+i",
+ "command": "-notebook.formatCell",
+ "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'"
+ },
+ {
+ "key": "ctrl+shift+i",
+ "command": "editor.action.formatDocument",
+ "when": "editorTextFocus"
+ },
+ {
+ "key": "ctrl+shift+i",
+ "command": "-editor.action.formatDocument",
+ "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
+ },
+ {
+ "key": "ctrl+shift+i",
+ "command": "workbench.action.toggleDevTools",
+ "when": "!editorTextFocus"
+ },
+ {
+ "key": "ctrl+shift+i",
+ "command": "-workbench.action.toggleDevTools",
+ "when": "isDevelopment"
+ },
+ {
+ "key": "ctrl+t",
+ "command": "-workbench.action.showAllSymbols"
+ },
+ {
+ "key": "ctrl+t",
+ "command": "workbench.action.files.newUntitledFile"
+ },
+ {
+ "key": "ctrl+n",
+ "command": "-workbench.action.files.newUntitledFile"
+ },
+ {
+ "key": "ctrl+shift+m",
+ "command": "github.cweijan.mysql.focus"
+ },
+ {
+ "key": "ctrl+shift+m",
+ "command": "-workbench.actions.view.problems",
+ "when": "workbench.panel.markers.view.active"
+ },
+ {
+ "key": "ctrl+shift+0",
+ "command": "workbench.action.zoomReset"
+ },
+ {
+ "key": "ctrl+numpad0",
+ "command": "-workbench.action.zoomReset"
+ }
+]