keybindings.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. // Focus editors and groups by cmd+number keys
  80. {
  81. "key": "cmd+1",
  82. "command": "workbench.action.openEditorAtIndex1"
  83. },
  84. {
  85. "key": "cmd+2",
  86. "command": "workbench.action.openEditorAtIndex2"
  87. },
  88. {
  89. "key": "cmd+3",
  90. "command": "workbench.action.openEditorAtIndex3"
  91. },
  92. {
  93. "key": "cmd+4",
  94. "command": "workbench.action.openEditorAtIndex4"
  95. },
  96. {
  97. "key": "cmd+5",
  98. "command": "workbench.action.openEditorAtIndex5"
  99. },
  100. {
  101. "key": "cmd+6",
  102. "command": "workbench.action.openEditorAtIndex6"
  103. },
  104. {
  105. "key": "cmd+7",
  106. "command": "workbench.action.openEditorAtIndex7"
  107. },
  108. {
  109. "key": "cmd+8",
  110. "command": "workbench.action.openEditorAtIndex8"
  111. },
  112. {
  113. "key": "cmd+9",
  114. "command": "workbench.action.openEditorAtIndex9"
  115. },
  116. {
  117. "key": "cmd+shift+1",
  118. "command": "workbench.action.focusFirstEditorGroup"
  119. },
  120. {
  121. "key": "cmd+shift+2",
  122. "command": "workbench.action.focusSecondEditorGroup"
  123. },
  124. {
  125. "key": "cmd+shift+3",
  126. "command": "workbench.action.focusThirdEditorGroup"
  127. },
  128. ]