keybindings.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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": "cmd+k cmd+z",
  17. "command": "workbench.action.toggleMaximizedPanel",
  18. "when": "terminalFocus"
  19. },
  20. {
  21. "key": "alt+cmd+/",
  22. "command": "-liveshare.followToTheSide",
  23. "when": "liveshare:hasCollaborators"
  24. },
  25. {
  26. "key": "alt+cmd+/",
  27. "command": "editor.action.blockComment",
  28. "when": "editorTextFocus && !editorReadonly"
  29. },
  30. {
  31. "key": "shift+alt+a",
  32. "command": "-editor.action.blockComment",
  33. "when": "editorTextFocus && !editorReadonly"
  34. },
  35. {
  36. "key": "cmd+k cmd+u",
  37. "command": "editor.action.transformToUppercase"
  38. },
  39. {
  40. "key": "cmd+k cmd+l",
  41. "command": "editor.action.transformToLowercase"
  42. },
  43. {
  44. "key": "ctrl+shift+w",
  45. "command": "editor.emmet.action.wrapWithAbbreviation"
  46. },
  47. {
  48. "key": "ctrl+t",
  49. "command": "-editor.action.transposeLetters",
  50. "when": "textInputFocus && !editorReadonly"
  51. },
  52. {
  53. "key": "ctrl+t",
  54. "command": "extension.transpose"
  55. },
  56. {
  57. "key": "cmd+h",
  58. "command": "workbench.files.action.collapseExplorerFolders"
  59. },
  60. {
  61. // show error under cursor
  62. "key": "cmd+;",
  63. "command": "editor.action.showHover",
  64. "when": "editorTextFocus"
  65. },
  66. {
  67. // prevent fat-fingering the settings hotkey
  68. "key": "cmd+, cmd+,",
  69. "command": "workbench.action.openSettings"
  70. },
  71. {
  72. "key": "cmd+,",
  73. "command": "-workbench.action.openSettings"
  74. },
  75. {
  76. "key": "cmd+, cmd+.",
  77. "command": "macros.autoFixAll"
  78. },
  79. // activity bar
  80. {
  81. "key": "cmd+k cmd+b",
  82. "command": "workbench.action.toggleActivityBarVisibility",
  83. },
  84. {
  85. "key": "ctrl+]",
  86. "command": "workbench.action.nextSideBarView",
  87. // "when": "sideBarFocus"
  88. },
  89. {
  90. "key": "ctrl+[",
  91. "command": "workbench.action.previousSideBarView",
  92. // "when": "sideBarFocus"
  93. },
  94. // Focus editors and groups by cmd+number keys
  95. {
  96. "key": "cmd+1",
  97. "command": "workbench.action.openEditorAtIndex1"
  98. },
  99. {
  100. "key": "cmd+2",
  101. "command": "workbench.action.openEditorAtIndex2"
  102. },
  103. {
  104. "key": "cmd+3",
  105. "command": "workbench.action.openEditorAtIndex3"
  106. },
  107. {
  108. "key": "cmd+4",
  109. "command": "workbench.action.openEditorAtIndex4"
  110. },
  111. {
  112. "key": "cmd+5",
  113. "command": "workbench.action.openEditorAtIndex5"
  114. },
  115. {
  116. "key": "cmd+6",
  117. "command": "workbench.action.openEditorAtIndex6"
  118. },
  119. {
  120. "key": "cmd+7",
  121. "command": "workbench.action.openEditorAtIndex7"
  122. },
  123. {
  124. "key": "cmd+8",
  125. "command": "workbench.action.openEditorAtIndex8"
  126. },
  127. {
  128. "key": "cmd+9",
  129. "command": "workbench.action.openEditorAtIndex9"
  130. },
  131. {
  132. "key": "cmd+shift+1",
  133. "command": "workbench.action.focusFirstEditorGroup"
  134. },
  135. {
  136. "key": "cmd+shift+2",
  137. "command": "workbench.action.focusSecondEditorGroup"
  138. },
  139. {
  140. "key": "cmd+shift+3",
  141. "command": "workbench.action.focusThirdEditorGroup"
  142. }
  143. ]