-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkeybindings.json
46 lines (42 loc) · 3.37 KB
/
keybindings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[
{ "key": "ctrl+shift+r", "command": "editor.action.format", "when": "editorTextFocus" },
{ "key": "alt+shift+up", "command": "editor.action.insertCursorAbove", "when": "editorTextFocus" },
{ "key": "alt+shift+down", "command": "editor.action.insertCursorBelow", "when": "editorTextFocus" },
{ "key": "ctrl+m", "command": "editor.action.jumpToBracket", "when": "editorTextFocus" },
{ "key": "ctrl+shift+down", "command": "editor.action.moveLinesDownAction", "when": "editorTextFocus" },
{ "key": "ctrl+shift+up", "command": "editor.action.moveLinesUpAction", "when": "editorTextFocus" },
{ "key": "alt+enter", "command": "editor.action.quickFix", "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" },
{ "key": "ctrl+shift+w", "command": "workbench.action.closeAllEditors" },
{ "key": "cmd+shift+w", "command": "workbench.action.closeAllEditors" },
{ "key": "ctrl+shift+o", "command": "workbench.action.files.openFolder" },
{ "key": "ctrl+r", "command": "workbench.action.gotoSymbol" },
{ "key": "alt+-", "command": "workbench.action.navigateBack" },
{ "key": "alt+shift+-", "command": "workbench.action.navigateForward" },
{ "key": "ctrl+,", "command": "workbench.action.openGlobalSettings" },
{ "key": "ctrl+shift+i", "command": "workbench.action.toggleDevTools" },
{ "key": "cmd+alt+i", "command": "workbench.action.toggleDevTools" },
{ "key": "ctrl+shift+q", "command": "workbench.action.toggleMaximizedPanel" },
{ "key": "ctrl+0", "command": "workbench.files.action.showActiveFileInExplorer" },
{ "key": "ctrl+shift+e", "command": "workbench.files.action.focusFilesExplorer" },
{ "key": "ctrl+shift+x", "command": "workbench.action.terminal.kill" },
{ "key": "ctrl+`", "command": "workbench.action.terminal.focus", "when": "!terminalFocus" },
{ "key": "ctrl+shift+j", "command": "workbench.action.terminal.focusNext" },
{ "key": "ctrl+shift+k", "command": "workbench.action.terminal.focusPrevious" },
// Make Windows copy/paste behave the same as Linux
{ "key": "ctrl+shift+c", "command": "workbench.action.terminal.copySelection", "when": "terminalFocus && terminalTextSelected" },
{ "key": "ctrl+shift+v", "command": "workbench.action.terminal.paste", "when": "terminalFocus" },
// Make the explorer act more like OS file explorer
{ "key": "ctrl+n", "command": "explorer.newFile", "when": "explorerViewletVisible && filesExplorerFocus" },
{ "key": "cmd+n", "command": "explorer.newFile", "when": "explorerViewletVisible && filesExplorerFocus" },
{ "key": "ctrl+shift+n", "command": "explorer.newFolder", "when": "explorerViewletVisible && filesExplorerFocus" },
{ "key": "cmd+shift+n", "command": "explorer.newFolder", "when": "explorerViewletVisible && filesExplorerFocus" },
// Don't close when ctrl+w with no files open
{ "key": "ctrl+w", "command": "-workbench.action.closeWindow", "when": "!editorIsOpen" },
// This conflicts with a bash keybinding
{ "key": "ctrl+e", "command": "-workbench.action.quickOpen" },
// Unbind since it's rebound
{ "key": "ctrl+.", "command": "-editor.action.quickFix", "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly" },
// Extensions
{ "key": "ctrl+alt+o", "command": "gitProjectManager.openProject" },
{ "key": "ctrl+alt+p", "command": "-gitProjectManager.openProject" }
]