more vscode keybinds

This commit is contained in:
2024-02-23 13:02:00 +01:00
parent 0c251971a1
commit a45b41086d
3 changed files with 130 additions and 60 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# scripts to fetch config files
getconfig.sh

View File

@ -1,20 +1,7 @@
// Place your key bindings in this file to override the defaultsauto[] // Place your key bindings in this file to override the defaultsauto[]
[ [
{ // -------------- 1. EDITOR PANE MANAGEMENT --------------
"key": "cmd+d", // -------------- 1.1 EDITOR PANE CREATION ---------------
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{ {
"key": "ctrl+a shift+7", "key": "ctrl+a shift+7",
"command": "workbench.action.splitEditorRight" "command": "workbench.action.splitEditorRight"
@ -23,10 +10,15 @@
"key": "ctrl+a -", "key": "ctrl+a -",
"command": "workbench.action.splitEditorDown" "command": "workbench.action.splitEditorDown"
}, },
// -------------- 1.2 EDITOR PANE SWITCHING --------------
{ {
"key": "ctrl+a left", "key": "ctrl+a left",
"command": "workbench.action.focusLeftGroup" "command": "workbench.action.focusLeftGroup"
}, },
{
"key": "ctrl+a right",
"command": "workbench.action.focusRightGroup"
},
{ {
"key": "ctrl+a up", "key": "ctrl+a up",
"command": "workbench.action.focusAboveGroup" "command": "workbench.action.focusAboveGroup"
@ -35,55 +27,109 @@
"key": "ctrl+a down", "key": "ctrl+a down",
"command": "workbench.action.focusBelowGroup" "command": "workbench.action.focusBelowGroup"
}, },
// --------------- 1.3 EDITOR PANE MOVEMENT --------------
{ {
"key": "ctrl+a right", "key": "ctrl+a shift+left",
"command": "workbench.action.focusRightGroup" "command": "workbench.action.moveActiveEditorGroupLeft"
}, },
{ {
"key": "cmd+t", "key": "ctrl+a shift+right",
"command": "-workbench.action.showAllSymbols" "command": "workbench.action.moveActiveEditorGroupRight"
},
{
"key": "ctrl+a shift+up",
"command": "workbench.action.moveActiveEditorGroupUp"
},
{
"key": "ctrl+a shift+down",
"command": "workbench.action.moveActiveEditorGroupDown"
},
// ------------------ 2. FILE MANAGEMENT -----------------
{
"key": "ctrl+a f",
"command": "workbench.files.action.focusFilesExplorer"
},
{
"key": "cmd+n",
"command": "explorer.newFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "cmd+d",
"command": "explorer.newFolder",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// ----------------- 3. SYMBOL MANAGEMENT ----------------
{
"key": "shift+cmd+r",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+i",
"command": "editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+d",
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
// ------------- 4. VARIOUS EDITOR SHORTCUTS -------------
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
}, },
{ {
"key": "cmd+t", "key": "cmd+t",
"command": "workbench.action.createTerminalEditor" "command": "workbench.action.createTerminalEditor"
}, },
{
"key": "cmd+u",
"command": "-cursorUndo",
"when": "textInputFocus"
},
{ {
"key": "cmd+u", "key": "cmd+u",
"command": "workbench.action.showAllSymbols" "command": "workbench.action.showAllSymbols"
}, },
{ {
"key": "ctrl+a shift+down", "key": "cmd+r",
"command": "workbench.action.moveActiveEditorGroupDown" "command": "editor.action.startFindReplaceAction",
"when": "editorFocus && findInputFocussed"
},
{
"key": "shift+cmd+w",
"command": "workbench.action.closeAllGroups"
},
// ----------------- 4. REMOVED SHORTCUTS ----------------
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+u",
"command": "-cursorUndo",
"when": "textInputFocus"
}, },
{ {
"key": "cmd+k down", "key": "cmd+k down",
"command": "-workbench.action.moveActiveEditorGroupDown" "command": "-workbench.action.moveActiveEditorGroupDown"
}, },
{
"key": "ctrl+a shift+left",
"command": "workbench.action.moveActiveEditorGroupLeft"
},
{ {
"key": "cmd+k left", "key": "cmd+k left",
"command": "-workbench.action.moveActiveEditorGroupLeft" "command": "-workbench.action.moveActiveEditorGroupLeft"
}, },
{
"key": "ctrl+a shift+right",
"command": "workbench.action.moveActiveEditorGroupRight"
},
{ {
"key": "cmd+k right", "key": "cmd+k right",
"command": "-workbench.action.moveActiveEditorGroupRight" "command": "-workbench.action.moveActiveEditorGroupRight"
}, },
{
"key": "ctrl+a shift+up",
"command": "workbench.action.moveActiveEditorGroupUp"
},
{ {
"key": "cmd+k up", "key": "cmd+k up",
"command": "-workbench.action.moveActiveEditorGroupUp" "command": "-workbench.action.moveActiveEditorGroupUp"
@ -98,25 +144,6 @@
"command": "-debug.openBreakpointToSide", "command": "-debug.openBreakpointToSide",
"when": "breakpointsFocused" "when": "breakpointsFocused"
}, },
{
"key": "ctrl+a f",
"command": "workbench.files.action.focusFilesExplorer"
},
{
"key": "cmd+n",
"command": "explorer.newFile",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "cmd+d",
"command": "explorer.newFolder",
"when": "filesExplorerFocus && foldersViewVisible && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "shift+cmd+r",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{ {
"key": "f2", "key": "f2",
"command": "-editor.action.rename", "command": "-editor.action.rename",
@ -126,5 +153,47 @@
"key": "shift+cmd+r", "key": "shift+cmd+r",
"command": "-rerunSearchEditorSearch", "command": "-rerunSearchEditorSearch",
"when": "inSearchEditor" "when": "inSearchEditor"
} },
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "cmd+k shift+cmd+w",
"command": "-workbench.action.closeAllGroups"
},
{
"key": "shift+cmd+d",
"command": "-workbench.view.debug",
"when": "viewContainer.workbench.view.debug.enabled"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+[Comma] cmd+i",
"command": "-testing.toggleInlineTestOutput"
},
{
"key": "shift+cmd+i",
"command": "-workbench.action.quickchat.toggle",
"when": "hasChatProvider"
},
{
"key": "shift+cmd+[Comma] shift+cmd+i",
"command": "-testing.toggleInlineCoverage",
"when": "testing.isTestCoverageOpen"
},
{
"key": "cmd+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+f12",
"command": "-editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
] ]

View File

@ -82,7 +82,7 @@
// //
// JSON // JSON
"[json][jsonc]": { "[json][jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features" "editor.defaultFormatter": "vscode.json-language-features",
}, },
"prettier.singleQuote": true, "prettier.singleQuote": true,
// //
@ -95,5 +95,4 @@
"emmet.showAbbreviationSuggestions": false, "emmet.showAbbreviationSuggestions": false,
"editor.linkedEditing": true, "editor.linkedEditing": true,
}, },
"workbench.editor.showTabs": "none",
} }