|
// Place your key bindings in this file to overwrite the defaults |
|
[ |
|
// toggle console |
|
{ |
|
"key": "alt+`", |
|
"command": "workbench.action.terminal.toggleTerminal" |
|
}, |
|
|
|
// toggle word wrap |
|
{ |
|
"key": "ctrl+shift+w", |
|
"command": "editor.action.toggleWordWrap" |
|
}, |
|
|
|
// navigate panels up/down/left/right |
|
{ |
|
"key": "alt+up", |
|
"command": "workbench.action.navigateUp" |
|
}, |
|
{ |
|
"key": "alt+down", |
|
"command": "workbench.action.navigateDown" |
|
}, |
|
{ |
|
"key": "alt+left", |
|
"command": "workbench.action.navigateLeft" |
|
}, |
|
{ |
|
"key": "alt+right", |
|
"command": "workbench.action.navigateRight" |
|
}, |
|
|
|
// move tab to panel up/down/left/right |
|
{ |
|
"key": "alt+shift+up", |
|
"command": "workbench.action.moveEditorToAboveGroup" |
|
}, |
|
{ |
|
"key": "alt+shift+down", |
|
"command": "workbench.action.moveEditorToBelowGroup" |
|
}, |
|
{ |
|
"key": "alt+shift+left", |
|
"command": "workbench.action.moveEditorToLeftGroup" |
|
}, |
|
{ |
|
"key": "alt+shift+right", |
|
"command": "workbench.action.moveEditorToRightGroup" |
|
}, |
|
|
|
// (add these back) |
|
{ |
|
"key": "ctrl+alt+w", |
|
"command": "toggleFindWholeWord", |
|
"when": "editorFocus" |
|
}, |
|
{ |
|
"key": "ctrl+alt+w", |
|
"command": "toggleSearchWholeWord", |
|
"when": "searchInputBoxFocus && searchViewletVisible" |
|
}, |
|
|
|
// move cursor by word part |
|
{ |
|
"key": "ctrl+alt+left", |
|
"command": "cursorWordPartStartLeft", |
|
"when": "textInputFocus" |
|
}, |
|
{ |
|
"key": "ctrl+alt+shift+left", |
|
"command": "cursorWordPartStartLeftSelect", |
|
"when": "textInputFocus" |
|
}, |
|
{ |
|
"key": "ctrl+alt+right", |
|
"command": "cursorWordPartRight", |
|
"when": "textInputFocus" |
|
}, |
|
{ |
|
"key": "ctrl+alt+shift+right", |
|
"command": "cursorWordPartRightSelect", |
|
"when": "textInputFocus" |
|
}, |
|
|
|
// cursor history back/forward |
|
{ |
|
"key": "alt+home", |
|
"command": "workbench.action.navigateBack" |
|
}, |
|
{ |
|
"key": "alt+end", |
|
"command": "workbench.action.navigateForward" |
|
}, |
|
|
|
// move lines up/down |
|
{ |
|
"key": "ctrl+shift+up", |
|
"command": "editor.action.moveLinesUpAction", |
|
"when": "editorTextFocus && !editorReadonly" |
|
}, |
|
{ |
|
"key": "ctrl+shift+down", |
|
"command": "editor.action.moveLinesDownAction", |
|
"when": "editorTextFocus && !editorReadonly" |
|
}, |
|
|
|
// insert cursor above/below |
|
{ |
|
"key": "ctrl+alt+up", |
|
"command": "editor.action.insertCursorAbove", |
|
"when": "editorTextFocus" |
|
}, |
|
{ |
|
"key": "ctrl+alt+down", |
|
"command": "editor.action.insertCursorBelow", |
|
"when": "editorTextFocus" |
|
}, |
|
|
|
// duplicate lines |
|
{ |
|
"key": "ctrl+shift+d", |
|
"command": "editor.action.copyLinesDownAction", |
|
"when": "editorTextFocus && !editorReadonly" |
|
}, |
|
|
|
// maximize editor group |
|
{ |
|
"key": "alt+m", |
|
"command": "workbench.action.minimizeOtherEditors" |
|
}, |
|
|
|
// file/explorer stuff |
|
|
|
// new folder |
|
{ |
|
"key": "ctrl+shift+alt+n", |
|
"command": "explorer.newFolder" |
|
}, |
|
|
|
// new file |
|
{ |
|
"key": "ctrl+shift+n", |
|
"command": "explorer.newFile" |
|
}, |
|
|
|
// toggle terminal |
|
{ |
|
"key": "alt+shift+`", |
|
"command": "workbench.action.terminal.toggleTerminal" |
|
}, |
|
// duplicate file |
|
{ |
|
"key": "ctrl+alt+shift+d", |
|
"command": "fileutils.duplicateFile" |
|
}, |
|
|
|
// dev stuff |
|
{ |
|
"key": "ctrl+alt+shift+i", |
|
"command": "editor.action.inspectTMScopes" |
|
}, |
|
|
|
// python sort imports |
|
{ |
|
"key": "shift+alt+d", |
|
"command": "python.sortImports", |
|
"when": "editorTextFocus && editorLangId == python" |
|
}, |
|
|
|
// reveal active file in side bar |
|
{ |
|
"key": "shift+alt+r", |
|
"command": "workbench.files.action.showActiveFileInExplorer", |
|
"when": "editorTextFocus" |
|
} |
|
] |