keybindings.json 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. // Place your key bindings in this file to override the defaultsauto[]
  2. [
  3. {
  4. "key": "alt+escape",
  5. "command": "workbench.action.toggleSidebarVisibility"
  6. },
  7. {
  8. "key": "ctrl+alt+space",
  9. "command": "-workbench.action.toggleSidebarVisibility"
  10. },
  11. {
  12. "key": "ctrl+shift+enter",
  13. "command": "editor.action.insertLineBefore",
  14. "when": "editorTextFocus && !editorReadonly"
  15. },
  16. {
  17. "key": "ctrl+shift+enter",
  18. "command": "-editor.action.insertLineBefore",
  19. "when": "editorTextFocus && !editorReadonly"
  20. },
  21. {
  22. "key": "ctrl+j",
  23. "command": "-emacs.C-j",
  24. "when": "editorTextFocus && !editorReadonly"
  25. },
  26. {
  27. "key": "alt+;",
  28. "command": "-editor.action.blockComment",
  29. "when": "editorTextFocus && !editorReadonly"
  30. },
  31. {
  32. "key": "ctrl+;",
  33. "command": "-editor.action.commentLine",
  34. "when": "editorTextFocus && !editorReadonly"
  35. },
  36. {
  37. "key": "ctrl+`",
  38. "command": "-workbench.action.selectTheme"
  39. },
  40. {
  41. "key": "alt+j",
  42. "command": "editor.action.joinLines",
  43. "when": "editorTextFocus"
  44. },
  45. {
  46. "key": "ctrl+j",
  47. "command": "-editor.action.joinLines",
  48. "when": "editorTextFocus"
  49. },
  50. {
  51. "key": "alt+n",
  52. "command": "python.execInTerminal-icon"
  53. },
  54. {
  55. "key": "ctrl+k backspace",
  56. "command": "deleteAllLeft"
  57. },
  58. {
  59. "key": "ctrl+k delete",
  60. "command": "deleteAllRight"
  61. },
  62. {
  63. "key": "ctrl+m",
  64. "command": "-markdown.extension.editing.toggleMath",
  65. "when": "editorTextFocus && !editorReadonly && editorLangId == 'markdown'"
  66. },
  67. {
  68. "key": "ctrl+m",
  69. "command": "-extension.vim_ctrl+m",
  70. "when": "editorTextFocus && vim.active && vim.use<C-m> && !inDebugRepl || vim.active && vim.use<C-m> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-m> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
  71. },
  72. {
  73. "key": "ctrl+m",
  74. "command": "-editor.action.toggleTabFocusMode"
  75. },
  76. {
  77. "key": "ctrl+escape",
  78. "command": "workbench.action.output.toggleOutput",
  79. "when": "workbench.panel.output.active"
  80. },
  81. {
  82. "key": "ctrl+k ctrl+h",
  83. "command": "-workbench.action.output.toggleOutput",
  84. "when": "workbench.panel.output.active"
  85. },
  86. {
  87. "key": "ctrl+shift+i",
  88. "command": "-notebook.format",
  89. "when": "notebookEditable && !editorTextFocus && activeEditor == 'workbench.editor.notebook'"
  90. },
  91. {
  92. "key": "ctrl+shift+i",
  93. "command": "-editor.action.formatDocument.none",
  94. "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
  95. },
  96. {
  97. "key": "ctrl+shift+i",
  98. "command": "-emojisense.quickEmojitext",
  99. "when": "editorTextFocus"
  100. },
  101. {
  102. "key": "ctrl+w",
  103. "command": "-extension.vim_ctrl+w",
  104. "when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
  105. },
  106. {
  107. "key": "ctrl+n",
  108. "command": "-workbench.action.files.newUntitledFile"
  109. },
  110. {
  111. "key": "shift+f10",
  112. "command": "-editor.action.showContextMenu",
  113. "when": "textInputFocus"
  114. },
  115. {
  116. "key": "shift+f10",
  117. "command": "code-runner.run"
  118. },
  119. {
  120. "key": "ctrl+alt+n",
  121. "command": "-code-runner.run"
  122. },
  123. {
  124. "key": "ctrl+e",
  125. "command": "-workbench.action.quickOpen"
  126. },
  127. {
  128. "key": "ctrl+p",
  129. "command": "-workbench.action.quickOpen"
  130. },
  131. {
  132. "key": "alt+.",
  133. "command": "workbench.action.increaseViewSize",
  134. "when": "!terminalFocus"
  135. },
  136. {
  137. "key": "alt+,",
  138. "command": "workbench.action.decreaseViewSize",
  139. "when": "!terminalFocus"
  140. },
  141. {
  142. "key": "shift+meta+a",
  143. "command": "cursorEnd",
  144. "when": "textInputFocus"
  145. },
  146. {
  147. "key": "shift+meta+i",
  148. "command": "cursorHome",
  149. "when": "textInputFocus"
  150. },
  151. {
  152. "key": "shift+alt+up",
  153. "command": "-notebook.cell.copyUp",
  154. "when": "notebookEditorFocused && !inputFocus"
  155. },
  156. {
  157. "key": "shift+alt+down",
  158. "command": "-notebook.cell.copyDown",
  159. "when": "notebookEditorFocused && !inputFocus"
  160. },
  161. {
  162. "key": "shift+alt+down",
  163. "command": "-extension.vim_cmd+alt+down",
  164. "when": "editorTextFocus && vim.active && !inDebugRepl"
  165. },
  166. {
  167. "key": "shift+alt+up",
  168. "command": "-extension.vim_cmd+alt+up",
  169. "when": "editorTextFocus && vim.active && !inDebugRepl"
  170. },
  171. {
  172. "key": "ctrl+alt+escape",
  173. "command": "workbench.action.toggleActivityBarVisibility"
  174. },
  175. {
  176. "key": "shift+alt+w",
  177. "command": "editor.emmet.action.wrapWithAbbreviation"
  178. },
  179. {
  180. "key": "alt",
  181. "command": "workbench.action.toggleMenuBar"
  182. },
  183. {
  184. "key": "ctrl+c",
  185. "command": "-extension.vim_ctrl+c",
  186. "when": "editorTextFocus && vim.active && vim.overrideCtrlC && vim.use<C-c> && !inDebugRepl"
  187. },
  188. {
  189. "key": "ctrl+c",
  190. "command": "-search.action.copyMatch",
  191. "when": "fileMatchOrMatchFocus"
  192. },
  193. {
  194. "key": "shift+alt+down",
  195. "command": "editor.action.copyLinesDownAction",
  196. "when": "editorTextFocus && !editorReadonly"
  197. },
  198. {
  199. "key": "ctrl+shift+alt+down",
  200. "command": "-editor.action.copyLinesDownAction",
  201. "when": "editorTextFocus && !editorReadonly"
  202. },
  203. {
  204. "key": "shift+alt+down",
  205. "command": "-editor.action.insertCursorBelow",
  206. "when": "editorTextFocus"
  207. },
  208. {
  209. "key": "shift+alt+up",
  210. "command": "editor.action.copyLinesUpAction",
  211. "when": "editorTextFocus && !editorReadonly"
  212. },
  213. {
  214. "key": "ctrl+shift+alt+up",
  215. "command": "-editor.action.copyLinesUpAction",
  216. "when": "editorTextFocus && !editorReadonly"
  217. },
  218. {
  219. "key": "shift+alt+up",
  220. "command": "-editor.action.insertCursorAbove",
  221. "when": "editorTextFocus"
  222. },
  223. {
  224. "key": "alt+a",
  225. "command": "cursorEnd",
  226. "when": "textInputFocus"
  227. },
  228. {
  229. "key": "alt+i",
  230. "command": "cursorHome",
  231. "when": "textInputFocus"
  232. },
  233. {
  234. "key": "ctrl+r",
  235. "command": "-workbench.action.openRecent"
  236. },
  237. {
  238. "key": "u",
  239. "command": "undo",
  240. "when": "editorTextFocus && vim.active && !editorFocus && !inDebugRepl && vim.mode != 'Insert'"
  241. },
  242. {
  243. "key": "ctrl+r",
  244. "command": "redo",
  245. "when": "editorTextFocus && vim.active && !editorFocus && !inDebugRepl && vim.mode != 'Insert'"
  246. },
  247. {
  248. "key": "ctrl+alt+f",
  249. "command": "workbench.action.terminal.focusFind",
  250. "when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  251. },
  252. {
  253. "key": "ctrl+f",
  254. "command": "-workbench.action.terminal.focusFind",
  255. "when": "terminalFindFocused && terminalHasBeenCreated || terminalFindFocused && terminalProcessSupported || terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  256. },
  257. {
  258. "key": "ctrl+f10",
  259. "command": "rust-analyzer.run"
  260. },
  261. {
  262. "key": "ctrl+z",
  263. "command": "undo"
  264. },
  265. {
  266. "key": "ctrl+z",
  267. "command": "-undo"
  268. },
  269. {
  270. "key": "ctrl+alt+h",
  271. "command": "workbench.action.navigateLeft"
  272. },
  273. {
  274. "key": "ctrl+alt+l",
  275. "command": "workbench.action.navigateRight"
  276. }
  277. ]