Tom McKenzie 6 lat temu
rodzic
commit
fe2247db55
2 zmienionych plików z 65 dodań i 3 usunięć
  1. 61 1
      Code/User/keybindings.json
  2. 4 2
      Code/User/settings.json

+ 61 - 1
Code/User/keybindings.json

@@ -58,11 +58,71 @@
     "command": "workbench.files.action.collapseExplorerFolders"
   },
   {
+    // show error under cursor
+    "key": "cmd+;",
+    "command": "editor.action.showHover",
+    "when": "editorTextFocus"
+  },
+  {
+    // prevent fat-fingering the settings hotkey
     "key": "cmd+, cmd+,",
     "command": "workbench.action.openSettings"
   },
   {
     "key": "cmd+,",
     "command": "-workbench.action.openSettings"
-  }
+  },
+  {
+    "key": "cmd+, cmd+.",
+    "command": "macros.autoFixAll"
+  },
+  // Focus editors and groups by cmd+number keys
+  {
+    "key": "cmd+1",
+    "command": "workbench.action.openEditorAtIndex1"
+  },
+  {
+    "key": "cmd+2",
+    "command": "workbench.action.openEditorAtIndex2"
+  },
+  {
+    "key": "cmd+3",
+    "command": "workbench.action.openEditorAtIndex3"
+  },
+  {
+    "key": "cmd+4",
+    "command": "workbench.action.openEditorAtIndex4"
+  },
+  {
+    "key": "cmd+5",
+    "command": "workbench.action.openEditorAtIndex5"
+  },
+  {
+    "key": "cmd+6",
+    "command": "workbench.action.openEditorAtIndex6"
+  },
+  {
+    "key": "cmd+7",
+    "command": "workbench.action.openEditorAtIndex7"
+  },
+  {
+    "key": "cmd+8",
+    "command": "workbench.action.openEditorAtIndex8"
+  },
+  {
+    "key": "cmd+9",
+    "command": "workbench.action.openEditorAtIndex9"
+  },
+  {
+    "key": "cmd+shift+1",
+    "command": "workbench.action.focusFirstEditorGroup"
+  },
+  {
+    "key": "cmd+shift+2",
+    "command": "workbench.action.focusSecondEditorGroup"
+  },
+  {
+    "key": "cmd+shift+3",
+    "command": "workbench.action.focusThirdEditorGroup"
+  },
 ]

+ 4 - 2
Code/User/settings.json

@@ -91,7 +91,6 @@
         "overview"
     ],
     "gitlens.hovers.annotations.changes": false,
-    "gitlens.hovers.currentLine.details": false,
     "gitlens.recentChanges.toggleMode": "window",
     "gitlens.statusBar.alignment": "left",
     "gitlens.statusBar.format": "${ago}: \"${message}\"",
@@ -209,5 +208,8 @@
     "nasc-touchbar.addCursorBelow": false,
     "diffEditor.originalEditable": true,
     "emmet.showSuggestionsAsSnippets": true,
-    "editor.snippetSuggestions": "bottom"
+    "editor.snippetSuggestions": "bottom",
+    "editor.wordBasedSuggestions": false,
+    "gitlens.hovers.currentLine.details": false,
+    "gitlens.hovers.currentLine.enabled": false
 }