keybindings.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. // Place your key bindings in this file to override the defaultsauto[]
  2. [
  3. {
  4. "key": "cmd+k cmd+j",
  5. "command": "workbench.action.toggleMaximizedPanel"
  6. },
  7. {
  8. "key": "cmd+k cmd+z",
  9. "command": "workbench.action.maximizeEditor"
  10. },
  11. {
  12. "key": "cmd+k shift+cmd+z",
  13. "command": "workbench.action.evenEditorWidths"
  14. },
  15. {
  16. "key": "alt+cmd+/",
  17. "command": "-liveshare.followToTheSide",
  18. "when": "liveshare:hasCollaborators"
  19. },
  20. {
  21. "key": "alt+cmd+/",
  22. "command": "editor.action.blockComment",
  23. "when": "editorTextFocus && !editorReadonly"
  24. },
  25. {
  26. "key": "shift+alt+a",
  27. "command": "-editor.action.blockComment",
  28. "when": "editorTextFocus && !editorReadonly"
  29. },
  30. {
  31. "key": "cmd+k cmd+u",
  32. "command": "editor.action.transformToUppercase"
  33. },
  34. {
  35. "key": "cmd+k cmd+l",
  36. "command": "editor.action.transformToLowercase"
  37. },
  38. {
  39. "key": "ctrl+shift+w",
  40. "command": "editor.emmet.action.wrapWithAbbreviation"
  41. },
  42. {
  43. "key": "ctrl+t",
  44. "command": "-editor.action.transposeLetters",
  45. "when": "textInputFocus && !editorReadonly"
  46. },
  47. {
  48. "key": "ctrl+t",
  49. "command": "extension.transpose"
  50. },
  51. {
  52. "key": "cmd+h",
  53. "command": "workbench.files.action.collapseExplorerFolders"
  54. },
  55. // prevent fat-fingering the settings hotkey
  56. {
  57. "key": "cmd+,",
  58. "command": "-workbench.action.openSettings"
  59. },
  60. {
  61. // double press to open settings
  62. "key": "cmd+, cmd+,",
  63. "command": "workbench.action.openSettings"
  64. },
  65. {
  66. "key": "cmd+, cmd+;",
  67. "command": "editor.action.fixAll",
  68. "when": "editorTextFocus"
  69. },
  70. {
  71. // show error under cursor
  72. "key": "cmd+, cmd+.",
  73. "command": "editor.action.showHover",
  74. "when": "editorTextFocus"
  75. },
  76. // activity bar
  77. {
  78. "key": "cmd+k cmd+b",
  79. "command": "workbench.action.toggleActivityBarVisibility",
  80. },
  81. {
  82. "key": "ctrl+]",
  83. "command": "workbench.action.nextSideBarView",
  84. // "when": "sideBarFocus"
  85. },
  86. {
  87. "key": "ctrl+[",
  88. "command": "workbench.action.previousSideBarView",
  89. // "when": "sideBarFocus"
  90. },
  91. {
  92. "key": "cmd+, cmd+/",
  93. "command": "editor.action.triggerParameterHints",
  94. "when": "editorHasSignatureHelpProvider && editorTextFocus"
  95. },
  96. // Focus editors and groups by cmd+number keys
  97. {
  98. "key": "cmd+1",
  99. "command": "workbench.action.openEditorAtIndex1"
  100. },
  101. {
  102. "key": "cmd+2",
  103. "command": "workbench.action.openEditorAtIndex2"
  104. },
  105. {
  106. "key": "cmd+3",
  107. "command": "workbench.action.openEditorAtIndex3"
  108. },
  109. {
  110. "key": "cmd+4",
  111. "command": "workbench.action.openEditorAtIndex4"
  112. },
  113. {
  114. "key": "cmd+5",
  115. "command": "workbench.action.openEditorAtIndex5"
  116. },
  117. {
  118. "key": "cmd+6",
  119. "command": "workbench.action.openEditorAtIndex6"
  120. },
  121. {
  122. "key": "cmd+7",
  123. "command": "workbench.action.openEditorAtIndex7"
  124. },
  125. {
  126. "key": "cmd+8",
  127. "command": "workbench.action.openEditorAtIndex8"
  128. },
  129. {
  130. "key": "cmd+9",
  131. "command": "workbench.action.openEditorAtIndex9"
  132. },
  133. {
  134. "key": "cmd+shift+1",
  135. "command": "workbench.action.focusFirstEditorGroup"
  136. },
  137. {
  138. "key": "cmd+shift+2",
  139. "command": "workbench.action.focusSecondEditorGroup"
  140. },
  141. {
  142. "key": "cmd+shift+3",
  143. "command": "workbench.action.focusThirdEditorGroup"
  144. },
  145. // move tabs around
  146. {
  147. "key": "cmd+k shift+cmd+right",
  148. "command": "-workbench.action.moveEditorRightInGroup"
  149. },
  150. {
  151. "key": "cmd+k shift+cmd+right",
  152. "command": "workbench.action.moveEditorToRightGroup"
  153. },
  154. {
  155. "key": "cmd+k shift+cmd+left",
  156. "command": "-workbench.action.moveEditorLeftInGroup"
  157. },
  158. {
  159. "key": "cmd+k shift+cmd+left",
  160. "command": "workbench.action.moveEditorToLeftGroup"
  161. },
  162. // terminal commands
  163. {
  164. "key": "cmd+t",
  165. "command": "workbench.action.terminal.new",
  166. "when": "terminalFocus"
  167. },
  168. {
  169. "key": "ctrl+shift+`",
  170. "command": "-workbench.action.terminal.new"
  171. },
  172. {
  173. "key": "cmd+w",
  174. "command": "workbench.action.terminal.kill",
  175. "when": "terminalFocus"
  176. },
  177. {
  178. "key": "alt+cmd+down",
  179. "command": "workbench.action.terminal.focusNext",
  180. "when": "terminalFocus"
  181. },
  182. {
  183. "key": "alt+cmd+up",
  184. "command": "workbench.action.terminal.focusPrevious",
  185. "when": "terminalFocus"
  186. },
  187. // navigate between changes
  188. {
  189. "key": "alt+cmd+pagedown",
  190. "command": "editor.action.dirtydiff.next",
  191. "when": "editorTextFocus"
  192. },
  193. {
  194. "key": "alt+cmd+pageup",
  195. "command": "editor.action.dirtydiff.previous",
  196. "when": "editorTextFocus"
  197. },
  198. {
  199. "key": "cmd+k cmd+k",
  200. "command": "workbench.action.openGlobalKeybindings"
  201. },
  202. {
  203. "key": "cmd+k cmd+s",
  204. "command": "-workbench.action.openGlobalKeybindings"
  205. },
  206. {
  207. "key": "cmd+k cmd+s",
  208. "command": "-workbench.action.openGlobalKeybindings"
  209. },
  210. {
  211. "key": "cmd+k cmd+k",
  212. "command": "workbench.action.openGlobalKeybindings"
  213. }
  214. ]