keybindings.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. [
  2. {
  3. "key": "shift+ctrl+e",
  4. "command": "actions.findWithSelection"
  5. },
  6. {
  7. "key": "ctrl+e",
  8. "command": "-actions.findWithSelection"
  9. },
  10. {
  11. "key": "ctrl+e",
  12. "command": "workbench.view.explorer"
  13. },
  14. {
  15. "key": "shift+ctrl+e",
  16. "command": "-workbench.view.explorer"
  17. },
  18. {
  19. "key": "r",
  20. "command": "renameFile",
  21. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  22. },
  23. {
  24. "key": "enter",
  25. "command": "-renameFile",
  26. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
  27. },
  28. {
  29. "key": "j",
  30. "command": "list.focusDown",
  31. "when": "listFocus && !inputFocus"
  32. },
  33. {
  34. "key": "k",
  35. "command": "list.focusUp",
  36. "when": "listFocus && !inputFocus"
  37. },
  38. {
  39. "key": "ctrl+j",
  40. "command": "selectNextSuggestion",
  41. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  42. },
  43. {
  44. "key": "ctrl+k",
  45. "command": "selectPrevSuggestion",
  46. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  47. },
  48. {
  49. "key": "ctrl+j",
  50. "command": "workbench.action.quickOpenNavigateNext",
  51. "when": "inQuickOpen"
  52. },
  53. {
  54. "key": "tab",
  55. "command": "selectNextSuggestion",
  56. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  57. },
  58. {
  59. "key": "tab",
  60. "command": "workbench.action.quickOpenNavigateNext",
  61. "when": "inQuickOpen"
  62. },
  63. {
  64. "key": "shift+tab",
  65. "command": "selectPrevSuggestion",
  66. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  67. },
  68. {
  69. "key": "shift+tab",
  70. "command": "selectPrevSuggestion",
  71. "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
  72. },
  73. {
  74. "key": "shift+tab",
  75. "command": "workbench.action.quickOpenNavigatePrevious",
  76. "when": "inQuickOpen"
  77. },
  78. {
  79. "key": "ctrl+k",
  80. "command": "workbench.action.quickOpenNavigatePrevious",
  81. "when": "inQuickOpen"
  82. },
  83. {
  84. "key": "enter",
  85. "command": "list.select",
  86. "when": "explorerViewletVisible && filesExplorerFocus"
  87. },
  88. {
  89. "key": "l",
  90. "command": "list.select",
  91. "when": "!inputFocus"
  92. },
  93. {
  94. "key": "o",
  95. "command": "list.toggleExpand",
  96. "when": "!inputFocus"
  97. },
  98. {
  99. "key": "h",
  100. "command": "list.collapse",
  101. "when": "explorerViewletVisible && filesExplorerFocus && !inputFocus"
  102. },
  103. {
  104. "key": "d",
  105. "command": "deleteFile",
  106. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  107. },
  108. {
  109. "key": "y",
  110. "command": "filesExplorer.copy",
  111. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
  112. },
  113. {
  114. "key": "x",
  115. "command": "filesExplorer.cut",
  116. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
  117. },
  118. {
  119. "key": "p",
  120. "command": "filesExplorer.paste",
  121. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  122. },
  123. {
  124. "key": "v",
  125. "command": "explorer.openToSide",
  126. "when": "explorerViewletFocus && explorerViewletVisible && !inputFocus"
  127. },
  128. {
  129. "key": "a",
  130. "command": "explorer.newFile",
  131. "when": "filesExplorerFocus && !inputFocus"
  132. },
  133. {
  134. "key": "shift+a",
  135. "command": "explorer.newFolder",
  136. "when": "filesExplorerFocus && !inputFocus"
  137. },
  138. {
  139. "key": "shift+;",
  140. "command": "insertPrevSuggestion",
  141. "when": "hasOtherSuggestions && textInputFocus && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'"
  142. },
  143. {
  144. "key": "ctrl+l",
  145. "when": "sideBarFocus",
  146. "command": "workbench.action.focusActiveEditorGroup"
  147. },
  148. {
  149. "key": "ctrl+k",
  150. "command": "workbench.action.focusActiveEditorGroup",
  151. "when": "terminalFocus"
  152. },
  153. {
  154. "key": "ctrl+j",
  155. "command": "-editor.action.insertLineAfter",
  156. "when": "editorTextFocus && neovim.ctrlKeysInsert && !neovim.recording && neovim.mode == 'insert'"
  157. },
  158. {
  159. "key": "alt+j",
  160. "command": "workbench.action.terminal.focus",
  161. "when": "!terminalFocus"
  162. },
  163. {
  164. "key": "ctrl+t",
  165. "command": "workbench.action.togglePanel"
  166. },
  167. {
  168. "key": "ctrl+j",
  169. "command": "-workbench.action.togglePanel"
  170. },
  171. {
  172. "key": "shift+k",
  173. "command": "editor.action.showHover",
  174. "when": "editorTextFocus && neovim.mode != 'insert'"
  175. },
  176. {
  177. "key": "ctrl+k ctrl+i",
  178. "command": "-editor.action.showHover",
  179. "when": "editorTextFocus"
  180. },
  181. {
  182. "key": "shift+tab",
  183. "command": "-acceptAlternativeSelectedSuggestion",
  184. "when": "suggestWidgetVisible && textInputFocus && textInputFocus"
  185. },
  186. {
  187. "key": "ctrl+f",
  188. "command": "-vscode-neovim.ctrl-f",
  189. "when": "editorTextFocus && neovim.ctrlKeysNormal && neovim.init && neovim.mode != 'insert'"
  190. },
  191. {
  192. "key": "shift+delete",
  193. "command": "-deleteFile",
  194. "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
  195. },
  196. {
  197. "key": "shift+escape",
  198. "command": "notebook.cell.quitEdit",
  199. "when": "inputFocus && notebookEditorFocused && !editorHasSelection && !editorHoverVisible"
  200. },
  201. {
  202. "key": "escape",
  203. "command": "-notebook.cell.quitEdit",
  204. "when": "inputFocus && notebookEditorFocused && !editorHasSelection && !editorHoverVisible"
  205. },
  206. {
  207. "key": "ctrl+shift+l",
  208. "command": "workbench.action.increaseViewSize"
  209. },
  210. {
  211. "key": "ctrl+shift+h",
  212. "command": "workbench.action.decreaseViewSize"
  213. },
  214. {
  215. "key": "ctrl+shift+t",
  216. "command": "-workbench.action.reopenClosedEditor"
  217. },
  218. {
  219. "key": "ctrl+shift+t",
  220. "command": "workbench.action.toggleMaximizedPanel"
  221. }
  222. ]