1- // Place your key bindings in this file to overwrite the defaults
21[
2+ /**
3+ * ----------------------------------------------------------------------------
4+ * General keybindings
5+ * ----------------------------------------------------------------------------
6+ */
7+ // Attempt to open workspace settings.json
8+ {
9+ "key" : " cmd-," ,
10+ "command" : " workbench.action.openSettingsJson"
11+ },
12+ {
13+ "key" : " cmd-k cmd-," ,
14+ "command" : " macros.openWorkspaceSettingsJSON"
15+ },
16+ // Clear notifications
17+ {
18+ "key" : " cmd+k cmd+n" ,
19+ "command" : " macros.clearOutputAndNotifications"
20+ },
21+ // Jump between change history
22+ {
23+ "key" : " cmd+]" ,
24+ "command" : " workbench.action.editor.nextChange" ,
25+ "when" : " editorTextFocus"
26+ },
27+ {
28+ "key" : " cmd+[" ,
29+ "command" : " workbench.action.editor.previousChange" ,
30+ "when" : " editorTextFocus"
31+ },
32+ // From https://stackoverflow.com/a/46087295/743464, note it applies to
33+ // splits with tabs which sucks
34+ {
35+ "key" : " cmd+1" ,
36+ "command" : " workbench.action.openEditorAtIndex1"
37+ },
38+ {
39+ "key" : " cmd+2" ,
40+ "command" : " workbench.action.openEditorAtIndex2"
41+ },
42+ {
43+ "key" : " cmd+3" ,
44+ "command" : " workbench.action.openEditorAtIndex3"
45+ },
46+ {
47+ "key" : " cmd+4" ,
48+ "command" : " workbench.action.openEditorAtIndex4"
49+ },
50+ {
51+ "key" : " cmd+5" ,
52+ "command" : " workbench.action.openEditorAtIndex5"
53+ },
54+ {
55+ "key" : " cmd+6" ,
56+ "command" : " workbench.action.openEditorAtIndex6"
57+ },
58+ {
59+ "key" : " cmd+7" ,
60+ "command" : " workbench.action.openEditorAtIndex7"
61+ },
62+ {
63+ "key" : " cmd+8" ,
64+ "command" : " workbench.action.openEditorAtIndex8"
65+ },
66+ /**
67+ * ----------------------------------------------------------------------------
68+ * Vim Helpers
69+ * ----------------------------------------------------------------------------
70+ */
371 // Vim navigate backwards/forwards
472 {
573 "key" : " ctrl+o" ,
1179 "command" : " workbench.action.navigateForward" ,
1280 "when" : " editorTextFocus"
1381 },
82+ /**
83+ * ----------------------------------------------------------------------------
84+ * File Helpers
85+ * ----------------------------------------------------------------------------
86+ */
1487 {
1588 "key" : " cmd+k p" ,
1689 "command" : " extension.copyRelativePathOfActiveFile" ,
2699 "command" : " latex-workshop.tab" ,
27100 "when" : " editorTextFocus"
28101 },
102+ /**
103+ * ----------------------------------------------------------------------------
104+ * Terminal Helpers
105+ * ----------------------------------------------------------------------------
106+ */
29107 {
30108 "key" : " cmd-alt-m" ,
31109 "command" : " workbench.action.terminal.focus"
39117 "command" : " editor.action.revealDefinition" ,
40118 "when" : " editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
41119 },
120+ /**
121+ * ----------------------------------------------------------------------------
122+ * Rspec Helpers
123+ * ----------------------------------------------------------------------------
124+ */
42125 // terrible defaults for "rails run specs"
43126 {
44127 "key" : " shift+cmd+t" ,
49132 "command" : " extension.runFileSpecs" ,
50133 "when" : " editorTextFocus"
51134 },
52- // Open keybindings.json file, since there's no default shortcut for it (LOL)
53- {
54- "key" : " cmd+k cmd+k" ,
55- "command" : " workbench.action.openGlobalKeybindingsFile"
56- },
57- // Clear notifications
58- {
59- "key" : " cmd+k cmd+n" ,
60- "command" : " macros.clearOutputAndNotifications"
61- },
135+ /**
136+ * ----------------------------------------------------------------------------
137+ * Apex Helpers
138+ * ----------------------------------------------------------------------------
139+ */
62140 // Rerun last apex test class
63141 {
64142 "key" : " cmd+k cmd+x" ,
68146 {
69147 "key" : " cmd+k cmd+t" ,
70148 "command" : " macros.runLastApexTestMethod"
71- },
72- // Jump between change history
73- {
74- "key" : " cmd+]" ,
75- "command" : " workbench.action.editor.nextChange" ,
76- "when" : " editorTextFocus"
77- },
78- {
79- "key" : " cmd+[" ,
80- "command" : " workbench.action.editor.previousChange" ,
81- "when" : " editorTextFocus"
82- },
83- // From https://stackoverflow.com/a/46087295/743464, note it applies to
84- // splits with tabs which sucks
85- {
86- "key" : " cmd+1" ,
87- "command" : " workbench.action.openEditorAtIndex1"
88- },
89- {
90- "key" : " cmd+2" ,
91- "command" : " workbench.action.openEditorAtIndex2"
92- },
93- {
94- "key" : " cmd+3" ,
95- "command" : " workbench.action.openEditorAtIndex3"
96- },
97- {
98- "key" : " cmd+4" ,
99- "command" : " workbench.action.openEditorAtIndex4"
100- },
101- {
102- "key" : " cmd+5" ,
103- "command" : " workbench.action.openEditorAtIndex5"
104- },
105- {
106- "key" : " cmd+6" ,
107- "command" : " workbench.action.openEditorAtIndex6"
108- },
109- {
110- "key" : " cmd+7" ,
111- "command" : " workbench.action.openEditorAtIndex7"
112- },
113- {
114- "key" : " cmd+8" ,
115- "command" : " workbench.action.openEditorAtIndex8"
116149 }
117150]
0 commit comments