keybindings.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. // Place your key bindings in this file to override the defaultsauto[]
  2. [
  3. {
  4. "key": "shift+ctrl+e",
  5. "command": "actions.findWithSelection"
  6. },
  7. {
  8. "key": "ctrl+e",
  9. "command": "-actions.findWithSelection"
  10. },
  11. {
  12. "key": "ctrl+e",
  13. "command": "workbench.view.explorer"
  14. },
  15. {
  16. "key": "shift+ctrl+e",
  17. "command": "-workbench.view.explorer"
  18. },
  19. {
  20. "key": "r",
  21. "command": "renameFile",
  22. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  23. },
  24. {
  25. "key": "enter",
  26. "command": "-renameFile",
  27. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  28. },
  29. {
  30. "key": "j",
  31. "command": "list.focusDown",
  32. "when": "listFocus && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  33. },
  34. {
  35. "key": "k",
  36. "command": "list.focusUp",
  37. "when": "listFocus && explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  38. },
  39. {
  40. "key": "ctrl+j",
  41. "command": "selectNextSuggestion",
  42. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  43. },
  44. {
  45. "key": "ctrl+k",
  46. "command": "selectPrevSuggestion",
  47. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  48. },
  49. {
  50. "key": "ctrl+j",
  51. "command": "workbench.action.quickOpenNavigateNext",
  52. "when": "inQuickOpen"
  53. },
  54. {
  55. "key": "tab",
  56. "command": "selectNextSuggestion",
  57. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  58. },
  59. {
  60. "key": "tab",
  61. "command": "workbench.action.quickOpenNavigateNext",
  62. "when": "inQuickOpen"
  63. },
  64. {
  65. "key": "shit+tab",
  66. "command": "selectPrevSuggestion",
  67. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  68. },
  69. {
  70. "key": "shift+tab",
  71. "command": "selectPrevSuggestion",
  72. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  73. },
  74. {
  75. "key": "shift+tab",
  76. "command": "workbench.action.quickOpenNavigatePrevious",
  77. "when": "inQuickOpen"
  78. },
  79. {
  80. "key": "ctrl+k",
  81. "command": "workbench.action.quickOpenNavigatePrevious",
  82. "when": "inQuickOpen"
  83. },
  84. {
  85. "key": "enter",
  86. "command": "list.select",
  87. "when": "explorerViewletVisible && filesExplorerFocus"
  88. },
  89. {
  90. "key": "l",
  91. "command": "list.select",
  92. "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
  93. },
  94. {
  95. "key": "o",
  96. "command": "list.toggleExpand",
  97. "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
  98. },
  99. {
  100. "key": "h",
  101. "command": "list.collapse",
  102. "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
  103. },
  104. {
  105. "key": "a",
  106. "command": "explorer.newFile",
  107. "when": "filesExplorerFocus && !inputFocus"
  108. },
  109. {
  110. "key": "shift+a",
  111. "command": "explorer.newFolder",
  112. "when": "filesExplorerFocus && !inputFocus"
  113. },
  114. {
  115. "key": "shift+;",
  116. "command": "insertPrevSuggestion",
  117. "when": "hasOtherSuggestions && textInputFocus && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'"
  118. },
  119. {
  120. "key": "ctrl+l",
  121. "when": "sideBarFocus",
  122. "command": "workbench.action.focusActiveEditorGroup"
  123. },
  124. {
  125. "key": "ctrl+k",
  126. "command": "workbench.action.focusActiveEditorGroup",
  127. "when": "terminalFocus"
  128. },
  129. {
  130. "key": "ctrl+shift+t",
  131. "command": "workbench.action.terminal.focus",
  132. "when": "!terminalFocus"
  133. },
  134. {
  135. "key": "ctrl+j",
  136. "command": "-editor.action.insertLineAfter",
  137. "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'"
  138. },
  139. {
  140. "key": "alt+j",
  141. "command": "workbench.action.terminal.focus",
  142. "when": "!terminalFocus"
  143. },
  144. {
  145. "key": "ctrl+shift+t",
  146. "command": "workbench.action.togglePanel"
  147. },
  148. {
  149. "key": "ctrl+j",
  150. "command": "-workbench.action.togglePanel"
  151. },
  152. {
  153. "key": "shift+k",
  154. "command": "editor.action.showHover",
  155. "when": "editorTextFocus"
  156. },
  157. {
  158. "key": "ctrl+k ctrl+i",
  159. "command": "-editor.action.showHover",
  160. "when": "editorTextFocus"
  161. },
  162. {
  163. "key": "shift+tab",
  164. "command": "-acceptAlternativeSelectedSuggestion",
  165. "when": "suggestWidgetVisible && textInputFocus && textInputFocus"
  166. },
  167. {
  168. "key": "ctrl+f",
  169. "command": "-vscode-neovim.ctrl-f",
  170. "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'"
  171. }
  172. ]