image.png 集成的Git、调试、扩展的免费开源编程软件 Microsoft在2015年4月30日Build 开发者大会上正式宣布了 Visual Studio Code 项目:一个运行于 Mac OS X、Windows和 Linux 之上的,针对于编写现代 Web 和云应用的跨平台源代码编辑器

快捷键设置 settings.json

  1. // 将键绑定放在此文件中以覆盖默认值auto[]
  2. [
  3. // ————————————————— 注释详情 —————————————————
  4. // ◆◆◆ @source:user: 表示用户自己设置
  5. // ◇◇◇ @source:default : 系统自带的设置
  6. // 这个命令正常在macwin上运行已经没问题了表示
  7. //
  8. // 00 表示复制一个这样的操作
  9. // - 表示添加新的「command」或「key
  10. // + 表示添加新的「command」或「key
  11. // 未清楚的「command」或「key
  12. // ————————————————— when —————————————————
  13. // 命令当在哪里生效,不写when则是在编辑器全局生效
  14. // terminalFocus 在终端
  15. // textInputFocus && editorReadonly 文本输入焦点和并非编辑只读
  16. // inQuickOpen && inViewsPicker 监听器&&查询打开
  17. // findWidgetVisible 查找可见的小部件
  18. // matchFocus 匹配焦点
  19. // replaceActive 替换
  20. // searchViewletVisible 搜索视图可见
  21. // remoteFileDialogVisible 远程文件对话框可见
  22. // "!editorFocus" 不在编辑的时候
  23. // isDevelopment 是开发者
  24. // "!editorIsOpen" 没有编辑器被打开
  25. // "!multipleEditorGroups" 没有编辑器分组
  26. //////////////////////////////////////////////////////////////////////////////
  27. // —————————————————————— 有冲突、或者按键一统、未决定 ——————————————————————
  28. // {
  29. // "key": "f2", //◇◇◇ 显示Emmet命令
  30. // "command": "workbench.action.showEmmetCommands"
  31. // },
  32. // {
  33. // "key": "cmd+alt+r", //◇◇◇ toggleFindRegex 切换查找正则表达式
  34. // "command": "toggleFindRegex",
  35. // "when": "editorFocus"
  36. // },
  37. // {
  38. // "key": "alt+cmd+[Comma]", //◆◆◆ 搜索:聚焦上一搜索结果 ???
  39. // "command": "search.action.focusPreviousSearchResult",
  40. // "when": "hasSearchResult || inSearchEditor"
  41. // },
  42. // {
  43. // "key": "alt+cmd+[Period]", //◆◆◆ 搜索:聚焦下一搜索结果 ???
  44. // "command": "search.action.focusNextSearchResult",
  45. // "when": "hasSearchResult || inSearchEditor"
  46. // },
  47. {
  48. "key": "alt+cmd+c", //◇◇◇ toggleFindCaseSensitive 切换匹配大小写
  49. "command": "toggleFindCaseSensitive",
  50. "when": "editorFocus"
  51. },
  52. {
  53. "key": "alt+cmd+v", //◇◇◇ toggleFindWholeWord 切换查找整个单词
  54. "command": "toggleFindWholeWord",
  55. "when": "editorFocus"
  56. },
  57. // —————————————————————— 系统设置 ——————————————————————
  58. {
  59. "key": "f1", //◆◆◆ 显示所有命令
  60. "command": "workbench.action.showCommands"
  61. },
  62. {
  63. "key": "cmd+1", //◆◆◆ 聚焦到"导航路径"视图 00
  64. "command": "breadcrumbs.focusAndSelect"
  65. },
  66. {
  67. "key": "alt+f1", //◆◆◆ 视图:打开视图 (可以停顿选择)
  68. "command": "workbench.action.openView"
  69. },
  70. {
  71. "key": "ctrl+q", //◆◆◆ 视图:打开视图 (可以停顿选择)
  72. "command": "workbench.action.openView"
  73. // "command": "workbench.action.quickOpenView" //视图:快速打开视图,(松开就选择进去了)
  74. },
  75. {
  76. "key": "f5", // 显示悬停 长按ctrl键即可
  77. "command": "editor.action.showDefinitionPreviewHover"
  78. },
  79. {
  80. "key": "cmd+4", //◆◆◆ 视图:显示运行和调试
  81. "command": "workbench.view.debug"
  82. },
  83. {
  84. "key": "shift+cmd+2", //◆◆◆ 视图:大纲
  85. "command": "outline.focus"
  86. },
  87. {
  88. "key": "cmd+8", //◆◆◆ 视图:大纲
  89. "command": "outline.focus"
  90. },
  91. {
  92. "key": "shift+cmd+0", //◆◆◆ 视图:显示源代码管理
  93. "command": "workbench.view.scm"
  94. },
  95. {
  96. "key": "f5", //◆◆◆ Debug:开始调试
  97. "command": "workbench.action.debug.start",
  98. "when": "!inDebugMode"
  99. },
  100. {
  101. "key": "shift+cmd+f9", //◆◆◆ 视图:问题
  102. "command": "workbench.actions.view.problems"
  103. },
  104. {
  105. "key": "shift+cmd+f10", //◆◆◆ 视图:输出
  106. "command": "workbench.panel.output.focus"
  107. },
  108. {
  109. "key": "shift+cmd+f11", //◆◆◆ 视图:调试控制台
  110. "command": "workbench.debug.action.toggleRepl"
  111. },
  112. {
  113. "key": "shift+cmd+f12", //◆◆◆ 视图:切换终端
  114. "command": "workbench.action.terminal.toggleTerminal"
  115. },
  116. {
  117. "key": "alt+f12", //◆◆◆ 视图:切换终端
  118. "command": "workbench.action.terminal.toggleTerminal"
  119. },
  120. {
  121. "key": "cmd+f12", //◆◆◆ 视图:切换集成终端
  122. "command": "workbench.action.terminal.toggleTerminal"
  123. },
  124. {
  125. "key": "alt+f11", //◆◆◆ 资源管理器:聚焦到“npm脚本”视图
  126. "command": "npm.focus"
  127. },
  128. {
  129. "key": "cmd+f11", //◆◆◆ 资源管理器:聚焦到“npm脚本”视图
  130. "command": "npm.focus"
  131. },
  132. {
  133. "key": "shift+cmd+b", //◆◆◆ 视图:切换面板
  134. "command": "workbench.action.togglePanel"
  135. },
  136. {
  137. "key": "cmd+=", //◆◆◆ 视图:放大
  138. "command": "workbench.action.zoomIn"
  139. },
  140. {
  141. "key": "cmd+-", //◆◆◆ 视图:缩小
  142. "command": "workbench.action.zoomOut"
  143. },
  144. // —————————————————————— 编码代码定位、查看方法、定位实现、引用 ——————————————————————
  145. {
  146. "key": "cmd+2", //◆◆◆ 转到编辑器中的符号
  147. "command": "workbench.action.gotoSymbol"
  148. },
  149. {
  150. "key": "cmd+3", //◆◆◆ 转到工作区中的符号
  151. "command": "workbench.action.showAllSymbols"
  152. },
  153. {
  154. "key": "cmd+f12", //◇◇◇ 转到实现
  155. "command": "editor.action.goToImplementation",
  156. "when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
  157. },
  158. {
  159. "key": "shift+alt+l", //◇◇◇ 查看实现
  160. "command": "editor.action.peekImplementation",
  161. "when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
  162. },
  163. {
  164. "key": "shift+cmd+[Semicolon]", // ◆◆◆ 找到全部实现
  165. "command": "references-view.findImplementations"
  166. },
  167. {
  168. "key": "cmd+;", //◇◇◇ 转到定义 +-
  169. "command": "editor.action.revealDefinition",
  170. "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
  171. },
  172. {
  173. "key": "cmd+[Semicolon]", //◇◇◇ 转到定义 +-
  174. "command": "editor.action.revealDefinition",
  175. "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
  176. },
  177. {
  178. "key": "cmd+'", //◇◇◇ 转到引用 --
  179. "command": "editor.action.goToReferences",
  180. "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
  181. },
  182. {
  183. "key": "shift+cmd+'", // ◇◇◇ 转到全部引用 --
  184. "command": "references-view.find",
  185. "when": "editorHasReferenceProvider"
  186. },
  187. {
  188. "key": "shift+cmd+h", //◇◇◇ 层级关系、继承关系
  189. "command": "dart.showTypeHierarchy",
  190. "when": "editorLangId == 'dart'"
  191. },
  192. // {
  193. // "key": "alt+enter", //◇◇◇ 自动修复 ?-
  194. // "command": "editor.action.autoFix"
  195. // },
  196. {
  197. "key": "alt+enter", //◇◇◇ 快速修复
  198. "command": "editor.action.quickFix",
  199. "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
  200. },
  201. {
  202. "key": "ctrl+enter", //◇◇◇ 触发建议
  203. "command": "editor.action.triggerSuggest",
  204. "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
  205. },
  206. {
  207. "key": "alt+/", //◇◇◇ 触发建议
  208. "command": "editor.action.triggerSuggest",
  209. "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
  210. },
  211. {
  212. "key": "ctrl+alt+space", //◆◆◆ 万能运行代码
  213. "command": "code-runner.run"
  214. },
  215. // —————————————————————— 光标操作 ——————————————————————
  216. {
  217. "key": "cmd+left", //◆◆◆ 后退
  218. "command": "workbench.action.navigateBack"
  219. },
  220. {
  221. "key": "cmd+right", //◆◆◆ 前进
  222. "command": "workbench.action.navigateForward"
  223. },
  224. {
  225. "key": "cmd+up", //◆◆◆ 光标到顶部
  226. "command": "cursorTop",
  227. "when": "textInputFocus"
  228. },
  229. {
  230. "key": "cmd+home", //◆◆◆ 光标到顶部
  231. "command": "cursorTop",
  232. "when": "textInputFocus"
  233. },
  234. {
  235. "key": "cmd+down", //◆◆◆ 光标到底部
  236. "command": "cursorBottom",
  237. "when": "textInputFocus"
  238. },
  239. {
  240. "key": "cmd+end", //◆◆◆ 光标到底部
  241. "command": "cursorBottom",
  242. "when": "textInputFocus"
  243. },
  244. {
  245. "key": "shift+alt+cmd+up", //◆◆◆ 光标选择到顶部
  246. "command": "cursorTopSelect",
  247. "when": "textInputFocus"
  248. },
  249. {
  250. "key": "cmd+shift+home", //◆◆◆ 光标选择到顶部
  251. "command": "cursorTopSelect",
  252. "when": "textInputFocus"
  253. },
  254. {
  255. "key": "shift+alt+cmd+down", //◆◆◆ 光标选择到底部
  256. "command": "cursorBottomSelect",
  257. "when": "textInputFocus"
  258. },
  259. {
  260. "key": "cmd+shift+end", //◆◆◆ 光标选择到底部
  261. "command": "cursorBottomSelect",
  262. "when": "textInputFocus"
  263. },
  264. {
  265. "key": "shift+up", //◆◆◆ 光标向上选择
  266. "command": "cursorUpSelect",
  267. "when": "textInputFocus"
  268. },
  269. {
  270. "key": "shift+alt+up", //◆◆◆ 光标向上选择
  271. "command": "cursorUpSelect",
  272. "when": "textInputFocus"
  273. },
  274. {
  275. "key": "shift+down", //◆◆◆ 光标向上选择
  276. "command": "cursorDownSelect",
  277. "when": "textInputFocus"
  278. },
  279. {
  280. "key": "shift+alt+down", //◆◆◆ 光标向上选择
  281. "command": "cursorDownSelect",
  282. "when": "textInputFocus"
  283. },
  284. {
  285. "key": "alt+up", //◆◆◆ 在上面添加光标
  286. "command": "editor.action.insertCursorAbove",
  287. "when": "editorTextFocus && !editorReadonly"
  288. },
  289. {
  290. "key": "alt+down", //◆◆◆ 在下面添加光标
  291. "command": "editor.action.insertCursorBelow",
  292. "when": "editorTextFocus && !editorReadonly"
  293. },
  294. {
  295. "key": "alt+left", //◆◆◆ 光标到单词左边
  296. "command": "cursorWordStartLeft",
  297. "when": "textInputFocus"
  298. },
  299. {
  300. "key": "alt+right", //◆◆◆ 光标到单词右边 (勿删)
  301. "command": "cursorWordEndRight",
  302. "when": "textInputFocus"
  303. },
  304. {
  305. "key": "ctrl+a", //◆◆◆ 光标移动到行首
  306. "command": "cursorLineStart",
  307. "when": "textInputFocus"
  308. },
  309. {
  310. "key": "ctrl+e", //◆◆◆ 光标移动到行尾
  311. "command": "cursorLineEnd",
  312. "when": "textInputFocus"
  313. },
  314. // {
  315. // "key": "alt+cmd+left", //◆◆◆ 光标移动到行首 (勿删)
  316. // "command": "cursorLineStart",
  317. // "when": "textInputFocus"
  318. // },
  319. // {
  320. // "key": "alt+cmd+right", //◆◆◆ 光标移动到行尾 (勿删)
  321. // "command": "cursorLineEnd",
  322. // "when": "textInputFocus"
  323. // },
  324. {
  325. "key": "alt+cmd+left", //◆◆◆ 光标到末首
  326. "command": "cursorHome",
  327. "when": "textInputFocus"
  328. },
  329. {
  330. "key": "alt+cmd+right", //◆◆◆ 光标到末尾
  331. "command": "cursorEnd",
  332. "when": "textInputFocus"
  333. },
  334. {
  335. "key": "shift+alt+cmd+right", // ◆◆◆ 光标选择到行尾
  336. "command": "cursorEndSelect",
  337. "when": "textInputFocus"
  338. },
  339. {
  340. "key": "shift+alt+cmd+left", // ◆◆◆ 光标选择到行首
  341. "command": "cursorHomeSelect",
  342. "when": "textInputFocus"
  343. },
  344. {
  345. "key": "cmd+d", //◆◆◆ 将下一个查找匹配项添加到选择
  346. "command": "editor.action.addSelectionToNextFindMatch",
  347. "when": "editorFocus"
  348. },
  349. {
  350. "key": "shift+cmd+d", //◆◆◆ 将上次选择移动到下一个查找匹配项
  351. "command": "editor.action.moveSelectionToNextFindMatch",
  352. "when": "editorFocus"
  353. },
  354. {
  355. "key": "alt+d", // ◆◆◆ 将选择内容添加到上一查找匹配项 ++
  356. "command": "editor.action.addSelectionToPreviousFindMatch"
  357. },
  358. {
  359. "key": "alt+shift+d", //◆◆◆ 将上个选择内容移动到上一查找匹配项 ++
  360. "command": "editor.action.moveSelectionToPreviousFindMatch"
  361. },
  362. {
  363. "key": "shift+alt+cmd+d", //◆◆◆ 更改所有匹配项目
  364. "command": "editor.action.changeAll",
  365. "when": "editorTextFocus && !editorReadonly"
  366. },
  367. {
  368. "key": "shift+cmd+k shift+cmd+d", //◆◆◆ 更改所有匹配项目
  369. "command": "editor.action.changeAll",
  370. "when": "editorTextFocus && editorTextFocus && !editorReadonly"
  371. },
  372. // —————————————————————— 系统设置 ——————————————————————
  373. {
  374. "key": "cmd+[Comma]", //◆◆◆ 首选项:打开用户设置
  375. "command": "workbench.action.openGlobalSettings"
  376. },
  377. {
  378. "key": "cmd+k cmd+u", //◆◆◆ 首选项:打开用户设置
  379. "command": "workbench.action.openGlobalSettings"
  380. },
  381. {
  382. "key": "cmd+k cmd+y", //◆◆◆ 首选项:打开默认设置(JSON
  383. "command": "workbench.action.openRawDefaultSettings"
  384. },
  385. {
  386. "key": "cmd+k cmd+i", //◆◆◆ 首选项:打开设置(json
  387. "command": "workbench.action.openSettingsJson"
  388. },
  389. {
  390. "key": "cmd+k cmd+a", //◆◆◆ 首选项:打开默认键盘快捷键(JSON
  391. "command": "workbench.action.openDefaultKeybindingsFile"
  392. },
  393. {
  394. "key": "cmd+k cmd+s", //◆◆◆ 首选项:打开键盘快捷方式
  395. "command": "workbench.action.openGlobalKeybindings"
  396. },
  397. {
  398. "key": "cmd+k cmd+d", //◆◆◆ 首选项:打开键盘快捷方式(JSON
  399. "command": "workbench.action.openGlobalKeybindingsFile"
  400. },
  401. // —————————————————————— 终端面板设置 ——————————————————————
  402. {
  403. "key": "alt+left", //◆◆◆ 终端:移动到行尾
  404. "command": "workbench.action.terminal.moveToLineStart",
  405. "when": "terminalFocus"
  406. },
  407. {
  408. "key": "alt+right", //◆◆◆ 终端:移动到行首
  409. "command": "workbench.action.terminal.moveToLineEnd",
  410. "when": "terminalFocus"
  411. },
  412. {
  413. "key": "cmd+backspace", //◆◆◆ 终端:删除左侧的字符
  414. "command": "workbench.action.terminal.deleteWordLeft",
  415. "when": "terminalFocus"
  416. },
  417. {
  418. "key": "alt+backspace", //◆◆◆ 终端:删除左侧的字符
  419. "command": "workbench.action.terminal.deleteWordLeft",
  420. "when": "terminalFocus"
  421. },
  422. {
  423. "key": "alt+delete", //◆◆◆ 终端:删除右侧的字符
  424. "command": "workbench.action.terminal.deleteWordRight",
  425. "when": "terminalFocus"
  426. },
  427. {
  428. "key": "cmd+delete", //◆◆◆ 终端:删除右侧的字符
  429. "command": "workbench.action.terminal.deleteWordRight",
  430. "when": "terminalFocus"
  431. },
  432. {
  433. "key": "cmd+\\ cmd+\\", //◆◆◆ 终端:拆分编辑器 或者说复制
  434. "command": "workbench.action.terminal.split",
  435. "when": "terminalFocus"
  436. },
  437. {
  438. "key": "cmd+oem_5 cmd+oem_5", //◆◆◆ 终端:拆分编辑器 或者说复制 win对应按键」
  439. "command": "workbench.action.terminal.split",
  440. "when": "terminalFocus"
  441. },
  442. {
  443. "key": "alt+cmd+f12", //◆◆◆ 终端:打开新的外部终端
  444. "command": "workbench.action.terminal.openNativeConsole",
  445. // "when": "!terminalFocus"
  446. },
  447. // {
  448. // "key": "cmd+k shift+cmd+left", //◆◆◆ 终端:聚焦到上一窗口(不太重要)
  449. // "command": "workbench.action.terminal.focusPreviousPane",
  450. // "when": "terminalFocus"
  451. // },
  452. // {
  453. // "key": "cmd+k shift+cmd+right", //◆◆◆ 终端:聚焦到下一窗口 (不太重要)
  454. // "command": "workbench.action.terminal.focusNextPane",
  455. // "when": "terminalFocus"
  456. // },
  457. {
  458. "key": "cmd+[Backslash] cmd+[Backslash]", //◆◆◆ 视图:拆分终端
  459. "command": "workbench.action.terminal.split",
  460. "when": "terminalFocus"
  461. },
  462. {
  463. "key": "cmd+z", //◆◆◆ 终端:撤销
  464. "command": "undo",
  465. "when": "terminalFocus"
  466. },
  467. // —————————————————————— 通用快捷键 ——————————————————————
  468. {
  469. "key": "cmd+v", //◆◆◆ 粘贴
  470. "command": "editor.action.clipboardPasteAction",
  471. "when": "textInputFocus && !editorReadonly"
  472. },
  473. {
  474. "key": "cmd+x", //◆◆◆ 剪贴
  475. "command": "editor.action.clipboardCutAction",
  476. "when": "textInputFocus && !editorReadonly"
  477. },
  478. {
  479. "key": "cmd+f", //◆◆◆ 查找
  480. "command": "actions.find"
  481. },
  482. {
  483. "key": "cmd+a", //◆◆◆ 全选
  484. "command": "editor.action.selectAll",
  485. "when": "textInputFocus"
  486. },
  487. {
  488. "key": "cmd+a", //◆◆◆ 全选
  489. "command": "list.selectAll",
  490. "when": "listFocus && listSupportsMultiselect && !inputFocus"
  491. },
  492. {
  493. "key": "cmd+a", //◆◆◆ 全选
  494. "command": "editor.action.webvieweditor.selectAll",
  495. "when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'"
  496. },
  497. {
  498. "key": "cmd+z", //◆◆◆ 撤销
  499. "command": "editor.action.customEditor.undo",
  500. "when": "focusedCustomEditorIsEditable && !inputFocus"
  501. },
  502. {
  503. "key": "cmd+z", //◆◆◆ 撤销
  504. "command": "editor.action.webvieweditor.undo",
  505. "when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
  506. },
  507. {
  508. "key": "cmd+z", //◆◆◆ 撤销
  509. "command": "undo",
  510. "when": "textInputFocus && !editorReadonly"
  511. },
  512. {
  513. "key": "shift+cmd+z", //◆◆◆ 反撤销
  514. "command": "editor.action.customEditor.redo",
  515. "when": "focusedCustomEditorIsEditable && !inputFocus"
  516. },
  517. {
  518. "key": "shift+cmd+z", //◆◆◆ 反撤销
  519. "command": "editor.action.webvieweditor.redo",
  520. "when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
  521. },
  522. {
  523. "key": "shift+cmd+z", //◆◆◆ 反撤销
  524. "command": "redo",
  525. "when": "textInputFocus && !editorReadonly"
  526. },
  527. // —————————————————————— 窗口与编辑器 ——————————————————————
  528. {
  529. "key": "shift+alt+cmd+n", //◆◆◆ 新建窗口
  530. "command": "workbench.action.newWindow"
  531. },
  532. {
  533. "key": "cmd+w", //◆◆◆ 视图:关闭编辑器
  534. "command": "workbench.action.closeActiveEditor"
  535. },
  536. {
  537. "key": "shift+alt+cmd+w", //◆◆◆ 关闭窗口 具体:退出了vscode编辑器
  538. "command": "workbench.action.closeWindow",
  539. "when": "!editorIsOpen && !multipleEditorGroups"
  540. },
  541. {
  542. "key": "alt+cmd+w", //◆◆◆ 视图:关闭组中的其他编辑器
  543. "command": "workbench.action.closeOtherEditors"
  544. },
  545. {
  546. "key": "shift+cmd+w", //◆◆◆ 视图:关闭所有编辑器
  547. "command": "workbench.action.closeAllEditors"
  548. },
  549. {
  550. "key": "cmd+[Backslash] cmd+s", //◆◆◆ 视图:关闭组中一保存的编辑器
  551. "command": "workbench.action.closeUnmodifiedEditors"
  552. },
  553. {
  554. "key": "cmd+[Backslash] cmd+w", //◆◆◆ 视图:关闭组中的所有编辑器
  555. "command": "workbench.action.closeEditorsInGroup"
  556. },
  557. {
  558. "key": "shift+cmd+k shift+cmd+up", //◆◆◆ 视图:向上移动编辑器组
  559. "command": "workbench.action.moveActiveEditorGroupUp"
  560. },
  561. {
  562. "key": "shift+cmd+k shift+cmd+down", //◆◆◆ 视图:向下移动编辑器组
  563. "command": "workbench.action.moveActiveEditorGroupDown"
  564. },
  565. {
  566. "key": "shift+cmd+k shift+cmd+left", //◆◆◆ 视图:向左移动编辑器组
  567. "command": "workbench.action.moveActiveEditorGroupLeft"
  568. },
  569. {
  570. "key": "shift+cmd+k shift+cmd+right", //◆◆◆ 视图:向右移动编辑器组
  571. "command": "workbench.action.moveActiveEditorGroupRight"
  572. },
  573. {
  574. "key": "cmd+k cmd+left", //◆◆◆ 视图:向左移动编辑器
  575. "command": "workbench.action.moveEditorLeftInGroup"
  576. },
  577. {
  578. "key": "cmd+k cmd+right", //◆◆◆ 视图:向右移动编辑器
  579. "command": "workbench.action.moveEditorRightInGroup"
  580. },
  581. {
  582. "key": "cmd+[Backslash] cmd+[Backslash]", //◆◆◆ 视图:拆分编辑器
  583. "command": "workbench.action.splitEditor",
  584. "when": "!terminalFocus"
  585. },
  586. {
  587. "key": "cmd+k cmd+[Backslash]", //◆◆◆ 视图:正交拆分编辑器
  588. "command": "workbench.action.splitEditorOrthogonal"
  589. },
  590. {
  591. "key": "cmd+[Backslash] cmd+0", //◆◆◆ 视图:切换垂直/水平编辑器布局
  592. "command": "workbench.action.toggleEditorGroupLayout"
  593. },
  594. {
  595. "key": "cmd+[Backslash] cmd+1", //◆◆◆ 视图:单行编辑器布局
  596. "command": "workbench.action.editorLayoutSingle"
  597. },
  598. {
  599. "key": "cmd+[Backslash] cmd+2", //◆◆◆ 视图:双行编辑器布局
  600. "command": "workbench.action.editorLayoutTwoColumns"
  601. },
  602. {
  603. "key": "cmd+[Backslash] cmd+3", //◆◆◆ 视图:三行编辑器布局
  604. "command": "workbench.action.editorLayoutThreeColumns"
  605. },
  606. {
  607. "key": "cmd+[Backslash] cmd+4", //◆◆◆ 视图:2x2网格编辑器布局
  608. "command": "workbench.action.editorLayoutTwoByTwoGrid"
  609. },
  610. {
  611. "key": "cmd+[Backslash] cmd+q", //◆◆◆ 视图:双列编辑器布局
  612. "command": "workbench.action.editorLayoutTwoRows"
  613. },
  614. {
  615. "key": "cmd+[Backslash] cmd+a", //◆◆◆ 视图:三列编辑器布局
  616. "command": "workbench.action.editorLayoutThreeRows"
  617. },
  618. {
  619. "key": "cmd+[Backslash] cmd+up", //◆◆◆ 视图:向上拆分编辑器组
  620. "command": "workbench.action.splitEditorUp"
  621. },
  622. {
  623. "key": "cmd+[Backslash] cmd+down", //◆◆◆ 视图:向下拆分编辑器组
  624. "command": "workbench.action.splitEditorDown"
  625. },
  626. {
  627. "key": "cmd+[Backslash] cmd+left", //◆◆◆ 视图:向左拆分编辑器组
  628. "command": "workbench.action.splitEditorLeft"
  629. },
  630. {
  631. "key": "cmd+[Backslash] cmd+right", //◆◆◆ 视图:向右拆分编辑器组
  632. "command": "workbench.action.splitEditorRight"
  633. },
  634. // {
  635. // "key": "shift+alt+cmd+left", //◆◆◆ 视图:聚焦到左侧编辑器组 (不太重要)
  636. // "command": "workbench.action.focusLeftGroup"
  637. // },
  638. // {
  639. // "key": "shift+alt+cmd+right", //◆◆◆ 视图:聚焦到右侧编辑器组 (不太重要)
  640. // "command": "workbench.action.focusRightGroup"
  641. // },
  642. // {
  643. // "key": "shift+alt+cmd+left", //◆◆◆ 视图:聚焦到上一组编辑器
  644. // "command": "workbench.action.focusPreviousGroup",
  645. // },
  646. // {
  647. // "key": "shift+alt+cmd+right", //◆◆◆ 视图:聚焦到下一组编辑器
  648. // "command": "workbench.action.focusNextGroup",
  649. // },
  650. {
  651. "key": "shift+cmd+left", //◆◆◆ 视图:打开上一个编辑器
  652. "command": "workbench.action.previousEditor"
  653. },
  654. {
  655. "key": "shift+cmd+right", //◆◆◆ 视图:打开下一个编辑器
  656. "command": "workbench.action.nextEditor"
  657. },
  658. {
  659. "key": "cmd+[Backslash] cmd+[BracketRight]", //◆◆◆ 视图:切换编辑组大小
  660. "command": "workbench.action.toggleEditorWidths"
  661. },
  662. {
  663. "key": "cmd+[Backslash] cmd+[BracketLeft]", //◆◆◆ 视图:切换编辑组大小
  664. "command": "workbench.action.toggleEditorWidths"
  665. },
  666. // —————————————————————— 文件 ——————————————————————
  667. {
  668. "key": "cmd+n", //◆◆◆ 文件:新建文件
  669. "command": "explorer.newFile"
  670. },
  671. {
  672. "key": "alt+cmd+n",
  673. "command": "revealFileInOS", //◆◆◆ finder中显示文件
  674. // "when": "!editorFocus"
  675. },
  676. {
  677. "key": "shift+cmd+n", //◆◆◆ 文件:新建文件夹
  678. "command": "explorer.newFolder"
  679. },
  680. {
  681. "key": "shift+cmd+1", //◆◆◆ 视图:显示资源管理器
  682. "command": "workbench.view.explorer"
  683. },
  684. {
  685. "key": "shift+alt+cmd+1", //◆◆◆ 在资源管理器中折叠文件夹
  686. "command": "workbench.files.action.collapseExplorerFolders"
  687. },
  688. {
  689. "key": "cmd+t", //◆◆◆ 刷新资源管理器
  690. "command": "workbench.files.action.refreshFilesExplorer"
  691. },
  692. {
  693. "key": "shift+cmd+k shift+cmd+r", //◆◆◆ 刷新资源管理器
  694. "command": "workbench.files.action.refreshFilesExplorer"
  695. },
  696. {
  697. "key": "shift+alt+cmd+r", //◆◆◆ 开发人员: 重新加载窗口
  698. "command": "workbench.action.reloadWindow",
  699. // "when": "isDevelopment"
  700. },
  701. {
  702. "key": "shift+alt+cmd+k shift+alt+cmd+r", //◆◆◆ 开发人员: 重新加载窗口
  703. "command": "workbench.action.reloadWindow",
  704. // "when": "isDevelopment"
  705. },
  706. {
  707. "key": "shift+alt+cmd+t", //◆◆◆ 开发人员: 重新加载窗口
  708. "command": "workbench.action.reloadWindow",
  709. // "when": "isDevelopment"
  710. },
  711. {
  712. "key": "shift+cmd+c", //◆◆◆ 文件:复制活动文件的相对路径
  713. "command": "copyRelativeFilePath",
  714. },
  715. {
  716. "key": "shift+alt+cmd+c", //◆◆◆ 文件:复制活动文件的相对路径
  717. "command": "copyFilePath",
  718. },
  719. {
  720. "key": "cmd+e", //◆◆◆ 转到文件...
  721. "command": "workbench.action.quickOpen"
  722. },
  723. {
  724. "key": "cmd+shift+e", //◆◆◆ 转到文件...
  725. "command": "workbench.action.quickOpen"
  726. },
  727. {
  728. "key": "cmd+shift+t", //◆◆◆ 文件:打开最近的文件...
  729. "command": "workbench.action.openRecent"
  730. },
  731. {
  732. "key": "shift+cmd+[Comma]", //◆◆◆ 跳到下一个更改 --
  733. "command": "workbench.action.editor.previousChange",
  734. "when": "editorTextFocus"
  735. },
  736. {
  737. "key": "shift+cmd+[Period]", //◆◆◆ 跳到下一个更改
  738. "command": "workbench.action.editor.nextChange",
  739. "when": "editorTextFocus"
  740. },
  741. {
  742. "key": "shift+alt+cmd+[Comma]", //◆◆◆ 显示上一个更改
  743. "command": "editor.action.dirtydiff.previous",
  744. "when": "editorTextFocus"
  745. },
  746. {
  747. "key": "shift+alt+cmd+[Period]", //◆◆◆ 显示下一个更改
  748. "command": "editor.action.dirtydiff.next",
  749. "when": "editorTextFocus"
  750. },
  751. {
  752. "key": "alt+cmd+e", //◆◆◆ 切换窗口...
  753. "command": "workbench.action.switchWindow"
  754. },
  755. {
  756. "key": "shift+alt+cmd+e", //◆◆◆ 切换窗口...
  757. "command": "workbench.action.switchWindow"
  758. },
  759. {
  760. "key": "cmd+o", //◆◆◆ 文件:打开...
  761. "command": "workbench.action.files.openFileFolder"
  762. },
  763. {
  764. "key": "cmd+shift+o", //◆◆◆ 文件:打开...
  765. "command": "workbench.action.files.openFileFolder"
  766. },
  767. {
  768. "key": "cmd+k cmd+o", //◆◆◆ 文件:在新窗口打开活动的文件
  769. "command": "workbench.action.files.showOpenedFileInNewWindow"
  770. },
  771. {
  772. "key": "cmd+s", //◆◆◆ 文件:保存
  773. "command": "workbench.action.files.save"
  774. },
  775. {
  776. "key": "shift+cmd+s", //◆◆◆ 文件:保存所有文件
  777. "command": "workbench.action.files.saveFiles"
  778. },
  779. {
  780. "key": "shift+cmd+s", //◆◆◆ 文件:全部保存
  781. "command": "workbench.action.files.saveAll"
  782. },
  783. {
  784. "key": "cmd+k s", //◆◆◆ 文件:保存但是不更改格式 --
  785. "command": "workbench.action.files.saveWithoutFormatting"
  786. },
  787. {
  788. "key": "alt+cmd+s", //◆◆◆ 文件:另存为...
  789. "command": "workbench.action.files.saveAs"
  790. },
  791. {
  792. // "key": "cmd+shift+alt+s", //◆◆◆ 文件:切换开关自动保存
  793. "key": "alt+s", //◆◆◆ 文件:切换开关自动保存
  794. "command": "workbench.action.toggleAutoSave"
  795. },
  796. // —————————————————————— 查找、替换 ——————————————————————
  797. {
  798. "key": "cmd+shift+f", //◆◆◆ 搜索:在文件中查找
  799. "command": "workbench.action.findInFiles"
  800. },
  801. // 查找软索引???
  802. {
  803. "key": "cmd+r", //◆◆◆ 替换
  804. "command": "editor.action.startFindReplaceAction"
  805. },
  806. {
  807. "key": "cmd+shift+r", //◆◆◆ 搜索:在文件中替换
  808. "command": "workbench.action.replaceInFiles"
  809. },
  810. {
  811. "key": "cmd+backspace", //◆◆◆ deleteWordLeft
  812. "command": "deleteWordLeft",
  813. "when": "textInputFocus && !editorReadonly"
  814. },
  815. {
  816. "key": "alt+backspace", //◆◆◆ deleteWordLeft
  817. "command": "deleteWordLeft",
  818. "when": "textInputFocus && !editorReadonly"
  819. },
  820. {
  821. "key": "ctrl+w", //◆◆◆ deleteWordLeft
  822. "command": "deleteWordLeft",
  823. "when": "textInputFocus && !editorReadonly"
  824. },
  825. {
  826. "key": "cmd+delete", //◆◆◆ deleteWordRight
  827. "command": "deleteWordRight",
  828. "when": "textInputFocus && !editorReadonly"
  829. },
  830. {
  831. "key": "alt+delete", //◆◆◆ deleteWordRight
  832. "command": "deleteWordRight",
  833. "when": "textInputFocus && !editorReadonly"
  834. },
  835. {
  836. "key": "ctrl+k", //◆◆◆ deleteWordRight
  837. "command": "deleteWordRight",
  838. "when": "textInputFocus && !editorReadonly"
  839. },
  840. {
  841. "key": "shift+cmd+backspace", //◆◆◆ 删除左侧所有内容
  842. "command": "deleteAllLeft",
  843. "when": "textInputFocus && !editorReadonly"
  844. },
  845. {
  846. "key": "shift+cmd+delete", //◆◆◆ 删除右侧所有内容
  847. "command": "deleteAllRight",
  848. "when": "textInputFocus && !editorReadonly"
  849. },
  850. {
  851. "key": "alt+x", //◆◆◆ 删除行
  852. "command": "editor.action.deleteLines",
  853. "when": "textInputFocus && !editorReadonly"
  854. },
  855. {
  856. "key": "ctrl+u", //◆◆◆ 删除行
  857. "command": "editor.action.deleteLines",
  858. "when": "textInputFocus && !editorReadonly"
  859. },
  860. {
  861. "key": "shift+alt+f", //◆◆◆ editor.action.formatDocument.none 00
  862. "command": "editor.action.formatDocument.none",
  863. "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly"
  864. },
  865. {
  866. "key": "shift+alt+f", //◆◆◆ filesExplorer.findInFolder 00
  867. "command": "filesExplorer.findInFolder",
  868. "when": "explorerResourceIsFolder && explorerViewletVisible && filesExplorerFocus && !inputFocus"
  869. },
  870. {
  871. "key": "shift+alt+f", //◆◆◆ 格式化文档
  872. "command": "editor.action.formatDocument",
  873. "when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
  874. },
  875. // {
  876. // "key": "shift+tab", //◆◆◆ 外外凹
  877. // "command": "acceptAlternativeSelectedSuggestion",
  878. // "when": "suggestWidgetVisible && textInputFocus && textInputFocus"
  879. // },
  880. // {
  881. // "key": "shift+tab", //◆◆◆ 外外凹
  882. // "command": "insertPrevSuggestion",
  883. // "when": "hasOtherSuggestions && textInputFocus && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'"
  884. // },
  885. // {
  886. // "key": "shift+tab", //◆◆◆ 外外凹
  887. // "command": "jumpToPrevSnippetPlaceholder",
  888. // "when": "editorTextFocus && hasPrevTabstop && inSnippetMode"
  889. // },
  890. {
  891. "key": "shift+tab", //◆◆◆ tab缩进
  892. "command": "outdent",
  893. "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
  894. },
  895. // —————————————————————— 切换类 ——————————————————————
  896. {
  897. "key": "cmd+b", //◆◆◆ 视图:切换侧边栏可见性
  898. "command": "workbench.action.toggleSidebarVisibility"
  899. },
  900. {
  901. "key": "shift+cmd+k shift+cmd+z", //◆◆◆ 视图:切换呈现空格
  902. "command": "editor.action.toggleRenderWhitespace"
  903. },
  904. {
  905. "key": "shift+cmd+k shift+cmd+c", //◆◆◆ 视图:切换活动栏可见性
  906. "command": "workbench.action.toggleActivityBarVisibility"
  907. },
  908. {
  909. "key": "shift+cmd+k shift+cmd+v", //◆◆◆ 视图:切换状态栏可见性
  910. "command": "workbench.action.toggleStatusbarVisibility"
  911. },
  912. {
  913. "key": "shift+cmd+k shift+cmd+b", //◆◆◆ 视图:切换导航路径
  914. "command": "breadcrumbs.toggle"
  915. },
  916. {
  917. "key": "shift+cmd+k shift+cmd+n", //◆◆◆ 视图:切换标签页可见性
  918. "command": "workbench.action.toggleTabsVisibility"
  919. },
  920. {
  921. "key": "shift+cmd+k shift+cmd+m", //◆◆◆ 视图:切换右边小地图
  922. "command": "editor.action.toggleMinimap"
  923. },
  924. // —————————————————————— 外观设置 ——————————————————————
  925. {
  926. "key": "cmd+k cmd+t", //◆◆◆ 首选项:颜色主题
  927. "command": "workbench.action.selectTheme"
  928. },
  929. {
  930. "key": "ctrl+[Backquote]", //◆◆◆ 首选项:颜色主题
  931. "command": "workbench.action.selectTheme"
  932. },
  933. {
  934. "key": "ctrl+`", //◆◆◆ 首选项:颜色主题
  935. "command": "workbench.action.selectTheme"
  936. },
  937. // —————————————————————— 编辑器功能(替换、定位) ——————————————————————
  938. {
  939. "key": "cmd+j", //◆◆◆ 转到行/列
  940. "command": "workbench.action.gotoLine"
  941. },
  942. {
  943. "key": "cmd+g", //◆◆◆ 设置选择定位点
  944. "command": "editor.action.setSelectionAnchor",
  945. "when": "editorTextFocus"
  946. },
  947. {
  948. "key": "cmd+shift+g", //◆◆◆ 转到选择定位点 (标记,标点)
  949. "command": "editor.action.goToSelectionAnchor"
  950. },
  951. {
  952. "key": "alt+g", //◆◆◆ 转到上一编辑位置
  953. "command": "workbench.action.navigateToLastEditLocation"
  954. },
  955. {
  956. "key": "cmd+[BracketLeft]", //◆◆◆ 转到括号
  957. "command": "editor.action.jumpToBracket",
  958. "when": "editorTextFocus"
  959. },
  960. {
  961. "key": "cmd+[BracketRight]", //◆◆◆ 转到括号
  962. "command": "editor.action.jumpToBracket",
  963. "when": "editorTextFocus"
  964. },
  965. {
  966. "key": "alt+[BracketLeft]", //◆◆◆ 转到括号
  967. "command": "editor.action.jumpToBracket",
  968. "when": "editorTextFocus"
  969. },
  970. {
  971. "key": "alt+[BracketRight]", //◆◆◆ 转到括号
  972. "command": "editor.action.jumpToBracket",
  973. "when": "editorTextFocus"
  974. },
  975. {
  976. "key": "alt+]", //◆◆◆ 转到括号
  977. "command": "editor.action.jumpToBracket",
  978. "when": "editorTextFocus"
  979. },
  980. {
  981. "key": "alt+[", //◆◆◆ 转到括号
  982. "command": "editor.action.jumpToBracket",
  983. "when": "editorTextFocus"
  984. },
  985. {
  986. "key": "shift+cmd+j", //◆◆◆ 合并行
  987. "command": "editor.action.joinLines",
  988. "when": "editorTextFocus && !editorReadonly"
  989. },
  990. {
  991. "key": "shift+cmd+up", //◆◆◆ 向上复制行
  992. "command": "editor.action.copyLinesUpAction",
  993. "when": "editorTextFocus && !editorReadonly"
  994. },
  995. {
  996. "key": "shift+cmd+down", //◆◆◆ 向下复制行
  997. "command": "editor.action.copyLinesDownAction",
  998. "when": "editorTextFocus && !editorReadonly"
  999. },
  1000. {
  1001. "key": "alt+cmd+up", //◆◆◆ 向上移动行
  1002. "command": "editor.action.moveLinesUpAction",
  1003. "when": "editorTextFocus",
  1004. },
  1005. {
  1006. "key": "alt+cmd+down", //◆◆◆ 向下移动行
  1007. "command": "editor.action.moveLinesDownAction",
  1008. "when": "editorTextFocus",
  1009. },
  1010. {
  1011. "key": "cmd+enter", //◆◆◆ 在上面插入行
  1012. "command": "editor.action.insertLineBefore",
  1013. "when": "editorTextFocus && !editorReadonly"
  1014. },
  1015. {
  1016. "key": "shift+enter", //◆◆◆ 在下面插入行
  1017. "command": "editor.action.insertLineAfter",
  1018. "when": "editorTextFocus && !editorReadonly"
  1019. },
  1020. // —————————————————————— 折叠、展开 ——————————————————————
  1021. {
  1022. "key": "cmd+l cmd+l", //◆◆◆ 切换折叠
  1023. "command": "editor.toggleFold",
  1024. "when": "editorTextFocus && foldingEnabled"
  1025. },
  1026. {
  1027. "key": "cmd+l cmd+0", //◆◆◆ 全部折叠
  1028. "command": "editor.foldAll",
  1029. "when": "editorTextFocus && foldingEnabled"
  1030. },
  1031. {
  1032. "key": "cmd+l cmd+9", //◆◆◆ 全部展开
  1033. "command": "editor.unfoldAll",
  1034. "when": "editorTextFocus && foldingEnabled"
  1035. },
  1036. {
  1037. "key": "cmd+l cmd+[BracketLeft]", //◆◆◆ 以递归的方式折叠
  1038. "command": "editor.foldRecursively"
  1039. },
  1040. {
  1041. "key": "cmd+l cmd+[BracketRight]", //◆◆◆ 以递归的方式展开
  1042. "command": "editor.unfoldRecursively"
  1043. },
  1044. {
  1045. "key": "cmd+l cmd+1", //折叠级别1
  1046. "command": "editor.foldLevel1",
  1047. "when": "editorTextFocus && foldingEnabled"
  1048. },
  1049. {
  1050. "key": "cmd+l cmd+2", //折叠级别2
  1051. "command": "editor.foldLevel2",
  1052. "when": "editorTextFocus && foldingEnabled"
  1053. },
  1054. {
  1055. "key": "cmd+l cmd+3", //折叠级别3
  1056. "command": "editor.foldLevel3",
  1057. "when": "editorTextFocus && foldingEnabled"
  1058. },
  1059. {
  1060. "key": "cmd+l cmd+4", //折叠级别4
  1061. "command": "editor.foldLevel4",
  1062. "when": "editorTextFocus && foldingEnabled"
  1063. },
  1064. {
  1065. "key": "cmd+l cmd+5", //折叠级别5
  1066. "command": "editor.foldLevel5",
  1067. "when": "editorTextFocus && foldingEnabled"
  1068. },
  1069. {
  1070. "key": "cmd+l cmd+6", //折叠级别6
  1071. "command": "editor.foldLevel6",
  1072. "when": "editorTextFocus && foldingEnabled"
  1073. },
  1074. {
  1075. "key": "cmd+l cmd+7", //折叠级别7
  1076. "command": "editor.foldLevel7",
  1077. "when": "editorTextFocus && foldingEnabled"
  1078. },
  1079. {
  1080. "key": "cmd+l cmd+-", //◆◆◆ 折叠除所选区域之外的所有区域
  1081. "command": "editor.foldAllExcept",
  1082. "when": "editorTextFocus && foldingEnabled"
  1083. },
  1084. {
  1085. "key": "cmd+l cmd+=", //◆◆◆ 展开除所选区域之外的所有区域
  1086. "command": "editor.unfoldAllExcept",
  1087. "when": "editorTextFocus && foldingEnabled"
  1088. },
  1089. {
  1090. "key": "shift+cmd+[BracketRight]", // ◆◆◆ 展开选择
  1091. "command": "editor.action.smartSelect.expand",
  1092. "when": "editorTextFocus"
  1093. },
  1094. {
  1095. "key": "shift+cmd+[BracketLeft]", //◆◆◆ 收起选择
  1096. "command": "editor.action.smartSelect.shrink",
  1097. "when": "editorTextFocus"
  1098. },
  1099. {
  1100. "key": "shift+cmd+[", //◆◆◆ 收起选择
  1101. "command": "editor.action.smartSelect.shrink",
  1102. "when": "editorTextFocus"
  1103. },
  1104. {
  1105. "key": "shift+alt+cmd+[BracketRight]", // ◆◆◆ 选择括号的所有内容
  1106. "command": "editor.action.selectToBracket"
  1107. },
  1108. {
  1109. "key": "shift+tab", //◆◆◆ 行减少缩进
  1110. "command": "editor.action.outdentLines"
  1111. },
  1112. {
  1113. "key": "shift+alt+tab", //◆◆◆ 行缩进
  1114. "command": "editor.action.indentLines"
  1115. },
  1116. {
  1117. "key": "shift+tab", //◆◆◆ tab缩进
  1118. "command": "outdent",
  1119. "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
  1120. },
  1121. {
  1122. "key": "cmd+/", //◆◆◆ 切换行注释
  1123. "command": "editor.action.commentLine",
  1124. "when": "editorTextFocus && !editorReadonly"
  1125. },
  1126. {
  1127. "key": "shift+cmd+/", //◆◆◆ 切换块注释
  1128. "command": "editor.action.blockComment",
  1129. "when": "editorTextFocus && !editorReadonly"
  1130. },
  1131. {
  1132. "key": "cmd+l cmd+/", //◆◆◆ 折叠所有块注释
  1133. "command": "editor.foldAllBlockComments",
  1134. "when": "editorTextFocus && foldingEnabled"
  1135. },
  1136. // ———————————————————————————————— git 相关设置) ————————————————————————————————
  1137. {
  1138. "key": "cmd+p cmd+i", //◇◇◇ Git:初始化存储库
  1139. "command": "git.init"
  1140. },
  1141. {
  1142. "key": "cmd+p cmd+c", //◇◇◇ Git:克隆
  1143. "command": "git.clone"
  1144. },
  1145. {
  1146. "key": "cmd+p cmd+o", //◇◇◇ Git:打开存储库
  1147. "command": "git.openRepository"
  1148. },
  1149. {
  1150. "key": "cmd+p cmd+r", //◇◇◇ Git:刷新
  1151. "command": "git.refresh"
  1152. },
  1153. // {
  1154. // "key": "cmd+p cmd+a", //◇◇◇ Git:同步
  1155. // "command": "git.sync"
  1156. // },
  1157. {
  1158. "key": "cmd+p cmd+a", //◇◇◇ Git:添加远程存储库
  1159. "command": "git.addRemote"
  1160. },
  1161. {
  1162. "key": "shift+alt+cmd+p shift+alt+cmd+d", //◇◇◇ Git:删除远程存储库
  1163. "command": "git.removeRemote"
  1164. },
  1165. // —————————————————————— git 暂存的提交、撤销 有关 ——————————————————————
  1166. {
  1167. "key": "", //◇◇◇ Git:提交
  1168. "command": "git.commit"
  1169. },
  1170. {
  1171. "key": "shift+cmd+p shift+cmd+e", //◇◇◇ Git:创建空提交
  1172. "command": "git.commitEmpty"
  1173. },
  1174. {
  1175. "key": "shift+cmd+p shift+cmd+c", //◇◇◇ Git:暂存所有的更改
  1176. "command": "git.stageAll"
  1177. },
  1178. {
  1179. "key": "shift+cmd+p shift+cmd+v", //◇◇◇ Git:提交已暂存文件
  1180. "command": "git.commitStaged"
  1181. },
  1182. {
  1183. "key": "", //◇◇◇ Git:提交已暂存文件(修改)
  1184. "command": "git.commitStagedAmend"
  1185. },
  1186. {
  1187. "key": "", //◇◇◇ Git:提交已暂存文件(已署名)
  1188. "command": "git.commitStagedSigned"
  1189. },
  1190. // {
  1191. // "key": "shift+cmd+p shift+cmd+v", //◇◇◇ Git:全部提交
  1192. // "command": "git.commitAll"
  1193. // },
  1194. //
  1195. {
  1196. "key": "shift+cmd+p shift+cmd+z", //◇◇◇ Git:撤销上次提交
  1197. "command": "git.undoCommit"
  1198. },
  1199. {
  1200. "key": "shift+cmd+p shift+cmd+x", //◇◇◇ Git:取消暂存的所有更改
  1201. "command": "git.unstageAll"
  1202. },
  1203. {
  1204. "key": "shift+cmd+p shift+cmd+d", //◇◇◇ Git:放弃所有更改
  1205. "command": "git.cleanAll"
  1206. },
  1207. // {
  1208. // "key": "", //◇◇◇ Git: 取消暂存更改
  1209. // "command": "git.unstage"
  1210. // },
  1211. // {
  1212. // "key": "", //◇◇◇ Git:放弃更改
  1213. // "command": "git.clean"
  1214. // },
  1215. {
  1216. "key": "shift+cmd+p shift+cmd+g", //◇◇◇ Git:添加到.gitignore
  1217. "command": "git.ignore"
  1218. },
  1219. //git 储藏有关
  1220. {
  1221. "key": "cmd+p cmd+s", //◇◇◇ Git:储藏
  1222. "command": "git.stash"
  1223. },
  1224. {
  1225. "key": "shift+cmd+p shift+cmd+s", //◇◇◇ Git:应用储藏... 弹出应用贮藏列表窗口,应用后不删除
  1226. "command": "git.stashApply"
  1227. },
  1228. {
  1229. "key": "shift+cmd+p s", //◇◇◇ Git:弹出储藏... 弹出应用贮藏列表窗口,应用后删除
  1230. "command": "git.stashPop"
  1231. },
  1232. {
  1233. "key": "shift+alt+cmd+p shift+alt+cmd+s", //◇◇◇ Git:删除储藏...
  1234. "command": "git.stashDrop"
  1235. },
  1236. // {
  1237. // "key": "shift+cmd+v shift+cmd+p", //◇◇◇ Git:应用最新储藏
  1238. // "command": "git.stashApplyLatest"
  1239. // },
  1240. // —————————————————————— git 拉取 推送 标签 ——————————————————————
  1241. {
  1242. "key": "cmd+p cmd+p", //◇◇◇ Git:拉取
  1243. "command": "git.pull"
  1244. },
  1245. {
  1246. "key": "shift+cmd+p shift+cmd+p", //◇◇◇ Git:推送
  1247. "command": "git.push"
  1248. },
  1249. {
  1250. "key": "alt+cmd+p alt+cmd+p", //◇◇◇ Git:推送到...
  1251. "command": "git.pushTo"
  1252. },
  1253. {
  1254. "key": "shift+alt+cmd+p shift+alt+cmd+p", //◇◇◇ 推送到...(强制)
  1255. "command": "git.pushToForce"
  1256. },
  1257. {
  1258. "key": "", //推送(“关注”标记)
  1259. "command": "git.pushWithTags"
  1260. },
  1261. {
  1262. "key": "", //推送(“关注”标记,强制)
  1263. "command": "git.pushWithTagsForce"
  1264. },
  1265. {
  1266. "key": "", // 推送(强制)
  1267. "command": "git.pushForce"
  1268. },
  1269. //fetch
  1270. {
  1271. "key": "", //抓取
  1272. "command": "git.fetch"
  1273. },
  1274. {
  1275. "key": "", // 抓取(删除)
  1276. "command": "git.fetchPrune"
  1277. },
  1278. {
  1279. "key": "", // 从所有远程存储库中拉取
  1280. "command": "git.fetchAll"
  1281. },
  1282. //变基
  1283. {
  1284. "key": "", //拉取(变基)
  1285. "command": "git.pullRebase"
  1286. },
  1287. {
  1288. "key": "", //同步(变基)
  1289. "command": "git.syncRebase"
  1290. },
  1291. //
  1292. {
  1293. "key": "", //Git:还原提交模板
  1294. "command": "git.restoreCommitTemplate"
  1295. },
  1296. //标签
  1297. {
  1298. "key": "shift+cmd+p shift+cmd+t", //◇◇◇ Git:创建git标签
  1299. "command": "git.createTag"
  1300. },
  1301. {
  1302. "key": "shift+alt+cmd+p shift+alt+cmd+t", //◇◇◇ Git:删除标签
  1303. "command": "git.deleteTag"
  1304. },
  1305. //分支
  1306. {
  1307. "key": "shift+cmd+p shift+cmd+b", //◇◇◇ Git:创建分支...
  1308. "command": "git.branch"
  1309. },
  1310. {
  1311. "key": "cmd+p cmd+b", //◇◇◇ Git:从现有来源创建新的分支...
  1312. "command": "git.branchFrom"
  1313. },
  1314. {
  1315. "key": "cmd+p cmd+l", //◇◇◇ Git:签出到... 切换分支
  1316. "command": "git.checkout"
  1317. },
  1318. {
  1319. "key": "cmd+p cmd+m", //◇◇◇ Git:合并分支...
  1320. "command": "git.merge"
  1321. },
  1322. {
  1323. "key": "", //发布分支
  1324. "command": "git.publish"
  1325. },
  1326. {
  1327. "key": "", //删除分支
  1328. "command": "git.deleteBranch"
  1329. },
  1330. {
  1331. "key": "", //重命名分支
  1332. "command": "git.renameBranch"
  1333. },
  1334. // {
  1335. // "key": "cmd+p cmd+h", //◇◇◇ git文件历史记录视图
  1336. // "command": "git.viewFileHistory"
  1337. // },
  1338. // {
  1339. // "key": "cmd+p cmd+h", //◇◇◇ 显示当前行的Code Lends命令
  1340. // "command": "codelens.showLensesInCurrentLine"
  1341. // },
  1342. // —————————————————————— 扩展或插件型快捷 ——————————————————————
  1343. {
  1344. "key": "alt+b", //◆◆◆ open In Default Browser
  1345. "command": "extension.openInDefaultBrowser"
  1346. },
  1347. {
  1348. "key": "alt+cmd+/", //◆◆◆ document This 文档注释
  1349. "command": "docthis.documentThis"
  1350. },
  1351. //=============================== 移除默认按键 ===============================
  1352. //=============================== 移除默认按键 ===============================
  1353. //=============================== 移除默认按键 ===============================
  1354. {
  1355. "key": "cmd+n",
  1356. "command": "-workbench.action.files.newUntitledFile"
  1357. },
  1358. {
  1359. "key": "shift+cmd+n",
  1360. "command": "-workbench.action.newWindow"
  1361. },
  1362. {
  1363. "key": "ctrl+w",
  1364. "command": "-workbench.action.switchWindow"
  1365. },
  1366. {
  1367. "key": "ctrl+cmd+w",
  1368. "command": "-workbench.action.toggleTabsVisibility"
  1369. },
  1370. {
  1371. "key": "cmd+o",
  1372. "command": "-workbench.action.files.openFileFolder"
  1373. },
  1374. {
  1375. "key": "cmd+k o",
  1376. "command": "-workbench.action.files.showOpenedFileInNewWindow"
  1377. },
  1378. {
  1379. "key": "cmd+k cmd+j",
  1380. "command": "-editor.unfoldAll",
  1381. "when": "editorTextFocus && foldingEnabled"
  1382. },
  1383. {
  1384. "key": "cmd+k cmd+k",
  1385. "command": "-workbench.action.openSettingsJson"
  1386. },
  1387. {
  1388. "key": "cmd+k cmd+d",
  1389. "command": "-editor.action.moveSelectionToNextFindMatch",
  1390. "when": "editorFocus"
  1391. },
  1392. {
  1393. "key": "shift+cmd+s",
  1394. "command": "-workbench.action.files.saveLocalFile"
  1395. },
  1396. {
  1397. "key": "shift+cmd+s",
  1398. "command": "-workbench.action.files.saveAs"
  1399. },
  1400. {
  1401. "key": "alt+cmd+s",
  1402. "command": "-workbench.action.files.saveAll"
  1403. },
  1404. {
  1405. "key": "cmd+s",
  1406. "command": "-workbench.action.files.save"
  1407. },
  1408. {
  1409. "key": "cmd+z",
  1410. "command": "-editor.action.customEditor.undo",
  1411. "when": "focusedCustomEditorIsEditable && !inputFocus"
  1412. },
  1413. {
  1414. "key": "cmd+z",
  1415. "command": "-editor.action.webvieweditor.undo",
  1416. "when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
  1417. },
  1418. {
  1419. "key": "cmd+z",
  1420. "command": "-undo",
  1421. "when": "textInputFocus && !editorReadonly"
  1422. },
  1423. {
  1424. "key": "shift+cmd+z",
  1425. "command": "-editor.action.customEditor.redo",
  1426. "when": "focusedCustomEditorIsEditable && !inputFocus"
  1427. },
  1428. {
  1429. "key": "shift+cmd+z",
  1430. "command": "-editor.action.webvieweditor.redo",
  1431. "when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
  1432. },
  1433. {
  1434. "key": "shift+cmd+z",
  1435. "command": "-redo",
  1436. "when": "textInputFocus && !editorReadonly"
  1437. },
  1438. {
  1439. "key": "cmd+x",
  1440. "command": "-editor.action.clipboardCutAction",
  1441. "when": "textInputFocus && !editorReadonly"
  1442. },
  1443. {
  1444. "key": "cmd+v",
  1445. "command": "-editor.action.clipboardPasteAction",
  1446. "when": "textInputFocus && !editorReadonly"
  1447. },
  1448. {
  1449. "key": "cmd+f",
  1450. "command": "-actions.find"
  1451. },
  1452. {
  1453. "key": "shift+cmd+f",
  1454. "command": "-workbench.action.findInFiles"
  1455. },
  1456. {
  1457. "key": "alt+cmd+f",
  1458. "command": "-editor.action.startFindReplaceAction"
  1459. },
  1460. {
  1461. "key": "shift+cmd+h",
  1462. "command": "-workbench.action.replaceInFiles"
  1463. },
  1464. {
  1465. "key": "cmd+/",
  1466. "command": "-editor.action.commentLine",
  1467. "when": "editorTextFocus && !editorReadonly"
  1468. },
  1469. {
  1470. "key": "shift+alt+a",
  1471. "command": "-editor.action.blockComment",
  1472. "when": "editorTextFocus && !editorReadonly"
  1473. },
  1474. {
  1475. "key": "shift+cmd+e",
  1476. "command": "-workbench.view.explorer"
  1477. },
  1478. {
  1479. "key": "cmd+q",
  1480. "command": "-workbench.action.quit"
  1481. },
  1482. {
  1483. "key": "f2",
  1484. "command": "-editor.action.rename",
  1485. "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
  1486. },
  1487. {
  1488. "key": "ctrl+q",
  1489. "command": "-workbench.action.quickOpenNavigateNextInViewPicker",
  1490. "when": "inQuickOpen && inViewsPicker"
  1491. },
  1492. {
  1493. "key": "cmd+k s",
  1494. "command": "-workbench.action.files.saveWithoutFormatting"
  1495. },
  1496. {
  1497. "key": "cmd+d",
  1498. "command": "-editor.action.addSelectionToNextFindMatch",
  1499. "when": "editorFocus"
  1500. },
  1501. {
  1502. "key": "shift+cmd+d",
  1503. "command": "-workbench.view.debug"
  1504. },
  1505. {
  1506. "key": "alt+backspace",
  1507. "command": "-deleteWordLeft",
  1508. "when": "textInputFocus && !editorReadonly"
  1509. },
  1510. {
  1511. "key": "alt+delete",
  1512. "command": "-deleteWordRight",
  1513. "when": "textInputFocus && !editorReadonly"
  1514. },
  1515. {
  1516. "key": "alt+delete",
  1517. "command": "-workbench.action.terminal.deleteWordRight",
  1518. "when": "terminalFocus"
  1519. },
  1520. {
  1521. "key": "cmd+backspace",
  1522. "command": "-deleteAllLeft",
  1523. "when": "textInputFocus && !editorReadonly"
  1524. },
  1525. {
  1526. "key": "shift+cmd+backspace",
  1527. "command": "-workbench.action.searchEditor.deleteResultBlock",
  1528. "when": "inSearchEditor"
  1529. },
  1530. {
  1531. "key": "cmd+delete",
  1532. "command": "-deleteAllRight",
  1533. "when": "textInputFocus && !editorReadonly"
  1534. },
  1535. {
  1536. "key": "ctrl+k",
  1537. "command": "-deleteAllRight",
  1538. "when": "textInputFocus && !editorReadonly"
  1539. },
  1540. {
  1541. "key": "cmd+w",
  1542. "command": "-workbench.action.closeActiveEditor"
  1543. },
  1544. {
  1545. "key": "cmd+w",
  1546. "command": "-workbench.action.closeWindow",
  1547. "when": "!editorIsOpen && !multipleEditorGroups"
  1548. },
  1549. {
  1550. "key": "shift+cmd+w",
  1551. "command": "-workbench.action.closeWindow"
  1552. },
  1553. {
  1554. "key": "cmd+b",
  1555. "command": "-workbench.action.toggleSidebarVisibility"
  1556. },
  1557. {
  1558. "key": "ctrl+j",
  1559. "command": "-editor.action.joinLines",
  1560. "when": "editorTextFocus && !editorReadonly"
  1561. },
  1562. {
  1563. "key": "ctrl+g",
  1564. "command": "-workbench.action.gotoLine"
  1565. },
  1566. {
  1567. "key": "cmd+shift+f",
  1568. "command": "-workbench.view.search",
  1569. "when": "!searchViewletVisible"
  1570. },
  1571. {
  1572. "key": "ctrl+shift+5",
  1573. "command": "-workbench.action.terminal.split",
  1574. "when": "terminalFocus"
  1575. },
  1576. {
  1577. "key": "alt+cmd+0",
  1578. "command": "-workbench.action.toggleEditorGroupLayout"
  1579. },
  1580. {
  1581. "key": "alt+cmd+left",
  1582. "command": "-workbench.action.previousEditor"
  1583. },
  1584. {
  1585. "key": "shift+cmd+[",
  1586. "command": "-workbench.action.previousEditor"
  1587. },
  1588. {
  1589. "key": "alt+cmd+left",
  1590. "command": "-workbench.action.terminal.focusPreviousPane",
  1591. "when": "terminalFocus"
  1592. },
  1593. {
  1594. "key": "alt+cmd+right",
  1595. "command": "-workbench.action.terminal.focusNextPane",
  1596. "when": "terminalFocus && terminalProcessSupported"
  1597. },
  1598. {
  1599. "key": "alt+cmd+right",
  1600. "command": "-markdown-table-formatter.moveColumnRight",
  1601. "when": "editorTextFocus"
  1602. },
  1603. {
  1604. "key": "cmd+left",
  1605. "command": "-workbench.action.terminal.moveToLineStart",
  1606. "when": "terminalFocus"
  1607. },
  1608. {
  1609. "key": "cmd+left",
  1610. "command": "-cursorHome",
  1611. "when": "textInputFocus"
  1612. },
  1613. {
  1614. "key": "cmd+left",
  1615. "command": "-list.collapseAll",
  1616. "when": "listFocus && !inputFocus"
  1617. },
  1618. {
  1619. "key": "cmd+right",
  1620. "command": "-workbench.action.terminal.moveToLineEnd",
  1621. "when": "terminalFocus"
  1622. },
  1623. {
  1624. "key": "cmd+right",
  1625. "command": "-cursorEnd",
  1626. "when": "textInputFocus"
  1627. },
  1628. {
  1629. "key": "cmd+k u",
  1630. "command": "-workbench.action.closeUnmodifiedEditors"
  1631. },
  1632. {
  1633. "key": "cmd+k w",
  1634. "command": "-workbench.action.closeEditorsInGroup"
  1635. },
  1636. {
  1637. "key": "shift+alt+f",
  1638. "command": "-editor.action.formatDocument",
  1639. "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
  1640. },
  1641. {
  1642. "key": "shift+alt+f",
  1643. "command": "-notebook.format",
  1644. "when": "notebookEditable && !editorTextFocus && activeEditor == 'workbench.editor.notebook'"
  1645. },
  1646. {
  1647. "key": "shift+alt+f",
  1648. "command": "-editor.action.formatDocument.none",
  1649. "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
  1650. },
  1651. {
  1652. "key": "shift+alt+f",
  1653. "command": "-notebook.formatCell",
  1654. "when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'"
  1655. },
  1656. {
  1657. "key": "shift+alt+f",
  1658. "command": "-filesExplorer.findInFolder",
  1659. "when": "explorerResourceIsFolder && explorerViewletVisible && filesExplorerFocus && !inputFocus"
  1660. },
  1661. {
  1662. "key": "alt+backspace",
  1663. "command": "-workbench.action.terminal.deleteWordLeft",
  1664. "when": "terminalFocus"
  1665. },
  1666. {
  1667. "key": "shift+cmd+right",
  1668. "command": "-cursorEndSelect",
  1669. "when": "textInputFocus"
  1670. },
  1671. {
  1672. "key": "shift+cmd+left",
  1673. "command": "-cursorHomeSelect",
  1674. "when": "textInputFocus"
  1675. },
  1676. {
  1677. "key": "alt+f12",
  1678. "command": "-editor.action.peekDefinition",
  1679. "when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
  1680. },
  1681. {
  1682. "key": "shift+cmd+c",
  1683. "command": "-workbench.action.terminal.openNativeConsole",
  1684. "when": "!terminalFocus"
  1685. },
  1686. {
  1687. "key": "ctrl+r",
  1688. "command": "-workbench.action.openRecent"
  1689. },
  1690. {
  1691. "key": "cmd+p",
  1692. "command": "-workbench.action.quickOpen"
  1693. },
  1694. {
  1695. "key": "f1",
  1696. "command": "-workbench.action.showCommands"
  1697. },
  1698. {
  1699. "key": "shift+cmd+p",
  1700. "command": "-workbench.action.showCommands"
  1701. },
  1702. {
  1703. "key": "shift+cmd+enter",
  1704. "command": "-editor.action.insertLineBefore",
  1705. "when": "editorTextFocus && !editorReadonly"
  1706. },
  1707. {
  1708. "key": "cmd+enter",
  1709. "command": "-editor.action.insertLineAfter",
  1710. "when": "editorTextFocus && !editorReadonly"
  1711. },
  1712. {
  1713. "key": "cmd+k left",
  1714. "command": "-workbench.action.moveActiveEditorGroupLeft"
  1715. },
  1716. {
  1717. "key": "cmd+k right",
  1718. "command": "-workbench.action.moveActiveEditorGroupRight"
  1719. },
  1720. {
  1721. "key": "cmd+k up",
  1722. "command": "-workbench.action.moveActiveEditorGroupUp"
  1723. },
  1724. {
  1725. "key": "cmd+k down",
  1726. "command": "-workbench.action.moveActiveEditorGroupDown"
  1727. },
  1728. {
  1729. "key": "cmd+k cmd+s",
  1730. "command": "-workbench.action.openGlobalKeybindings"
  1731. },
  1732. {
  1733. "key": "cmd+k cmd+u",
  1734. "command": "-editor.action.removeCommentLine",
  1735. },
  1736. {
  1737. "key": "shift+alt+cmd+left",
  1738. "command": "-cursorColumnSelectLeft",
  1739. "when": "textInputFocus"
  1740. },
  1741. {
  1742. "key": "shift+alt+cmd+right",
  1743. "command": "-cursorColumnSelectRight",
  1744. "when": "textInputFocus"
  1745. },
  1746. {
  1747. "key": "shift+alt+cmd+up",
  1748. "command": "-cursorColumnSelectUp",
  1749. "when": "textInputFocus"
  1750. },
  1751. {
  1752. "key": "shift+alt+cmd+down",
  1753. "command": "-cursorColumnSelectDown",
  1754. "when": "textInputFocus"
  1755. },
  1756. {
  1757. "key": "cmd+e",
  1758. "command": "-actions.findWithSelection"
  1759. },
  1760. {
  1761. "key": "shift+cmd+[Backslash]",
  1762. "command": "-editor.action.jumpToBracket",
  1763. "when": "editorTextFocus"
  1764. },
  1765. {
  1766. "key": "cmd+shift+\\",
  1767. "command": "-editor.action.jumpToBracket",
  1768. "when": "editorTextFocus"
  1769. },
  1770. {
  1771. "key": "cmd+k cmd+q",
  1772. "command": "-workbench.action.navigateToLastEditLocation"
  1773. },
  1774. {
  1775. "key": "shift+cmd+g",
  1776. "command": "-workbench.view.scm"
  1777. },
  1778. {
  1779. "key": "shift+cmd+g",
  1780. "command": "-workbench.action.terminal.findPrevious",
  1781. "when": "terminalFindFocused || terminalFocus"
  1782. },
  1783. {
  1784. "key": "shift+cmd+g",
  1785. "command": "-editor.action.previousMatchFindAction",
  1786. "when": "editorFocus"
  1787. },
  1788. {
  1789. "key": "f3",
  1790. "command": "-editor.action.nextMatchFindAction",
  1791. "when": "editorFocus"
  1792. },
  1793. {
  1794. "key": "shift+f3",
  1795. "command": "-editor.action.previousMatchFindAction",
  1796. "when": "editorFocus"
  1797. },
  1798. {
  1799. "key": "cmd+g",
  1800. "command": "-editor.action.nextMatchFindAction",
  1801. "when": "editorFocus"
  1802. },
  1803. {
  1804. "key": "f4",
  1805. "command": "-search.action.focusNextSearchResult",
  1806. "when": "hasSearchResult || inSearchEditor"
  1807. },
  1808. {
  1809. "key": "shift+cmd+o",
  1810. "command": "-workbench.action.gotoSymbol"
  1811. },
  1812. {
  1813. "key": "cmd+f12",
  1814. "command": "-editor.action.goToImplementation",
  1815. "when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
  1816. },
  1817. {
  1818. "key": "cmd+t",
  1819. "command": "-workbench.action.showAllSymbols"
  1820. },
  1821. {
  1822. "key": "cmd+k cmd+0",
  1823. "command": "-editor.foldAll",
  1824. "when": "editorTextFocus && foldingEnabled"
  1825. },
  1826. {
  1827. "key": "shift+alt+up",
  1828. "command": "-editor.action.copyLinesUpAction",
  1829. "when": "editorTextFocus && !editorReadonly"
  1830. },
  1831. {
  1832. "key": "shift+alt+down",
  1833. "command": "-editor.action.copyLinesDownAction",
  1834. "when": "editorTextFocus && !editorReadonly"
  1835. },
  1836. {
  1837. "key": "alt+cmd+up",
  1838. "command": "-editor.action.insertCursorAbove",
  1839. "when": "editorTextFocus"
  1840. },
  1841. {
  1842. "key": "alt+cmd+down",
  1843. "command": "-editor.action.insertCursorBelow",
  1844. "when": "editorTextFocus"
  1845. },
  1846. {
  1847. "key": "alt+up",
  1848. "command": "-editor.action.moveLinesUpAction",
  1849. "when": "editorTextFocus && !editorReadonly"
  1850. },
  1851. {
  1852. "key": "alt+down",
  1853. "command": "-editor.action.moveLinesDownAction",
  1854. "when": "editorTextFocus && !editorReadonly"
  1855. },
  1856. {
  1857. "key": "shift+cmd+k",
  1858. "command": "-editor.action.deleteLines",
  1859. "when": "textInputFocus && !editorReadonly"
  1860. },
  1861. {
  1862. "key": "ctrl+shift+right",
  1863. "command": "-editor.action.smartSelect.expand",
  1864. "when": "editorTextFocus"
  1865. },
  1866. {
  1867. "key": "ctrl+shift+left",
  1868. "command": "-editor.action.smartSelect.shrink",
  1869. "when": "editorTextFocus"
  1870. },
  1871. {
  1872. "key": "shift+cmd+up",
  1873. "command": "-cursorTopSelect",
  1874. "when": "textInputFocus"
  1875. },
  1876. {
  1877. "key": "shift+cmd+down",
  1878. "command": "-cursorBottomSelect",
  1879. "when": "textInputFocus"
  1880. },
  1881. {
  1882. "key": "shift+cmd+up",
  1883. "command": "-list.collapseAll",
  1884. "when": "listFocus && !inputFocus"
  1885. },
  1886. {
  1887. "key": "shift+cmd+t",
  1888. "command": "-workbench.action.reopenClosedEditor"
  1889. },
  1890. {
  1891. "key": "cmd+shift+[Period]",
  1892. "command": "-breadcrumbs.focusAndSelect"
  1893. },
  1894. {
  1895. "key": "ctrl+e",
  1896. "command": "-cursorLineEnd",
  1897. "when": "textInputFocus"
  1898. },
  1899. {
  1900. "key": "ctrl+a",
  1901. "command": "-cursorLineStart",
  1902. "when": "textInputFocus"
  1903. },
  1904. {
  1905. "key": "shift+alt+i",
  1906. "command": "-editor.action.insertCursorAtEndOfEachLineSelected",
  1907. "when": "editorTextFocus"
  1908. },
  1909. {
  1910. "key": "shift+tab",
  1911. "command": "-acceptAlternativeSelectedSuggestion",
  1912. "when": "suggestWidgetVisible && textInputFocus && textInputFocus"
  1913. },
  1914. {
  1915. "key": "shift+tab",
  1916. "command": "-insertPrevSuggestion",
  1917. "when": "hasOtherSuggestions && textInputFocus && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'"
  1918. },
  1919. {
  1920. "key": "shift+tab",
  1921. "command": "-jumpToPrevSnippetPlaceholder",
  1922. "when": "editorTextFocus && hasPrevTabstop && inSnippetMode"
  1923. },
  1924. {
  1925. "key": "shift+tab",
  1926. "command": "-outdent",
  1927. "when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
  1928. },
  1929. {
  1930. "key": "ctrl+space",
  1931. "command": "-editor.action.triggerSuggest",
  1932. "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
  1933. },
  1934. {
  1935. "key": "alt+escape",
  1936. "command": "-editor.action.triggerSuggest",
  1937. "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
  1938. },
  1939. {
  1940. "key": "cmd+j",
  1941. "command": "-workbench.action.togglePanel"
  1942. },
  1943. {
  1944. "key": "alt+b",
  1945. "command": "-extension.openInDefaultBrowser"
  1946. },
  1947. {
  1948. "key": "shift+cmd+b",
  1949. "command": "-workbench.action.tasks.build"
  1950. },
  1951. {
  1952. "key": "shift+cmd+t",
  1953. "command": "-extension.translate",
  1954. "when": "editorTextFocus"
  1955. },
  1956. {
  1957. "key": "ctrl+-",
  1958. "command": "-workbench.action.navigateBack"
  1959. },
  1960. {
  1961. "key": "ctrl+shift+-",
  1962. "command": "-workbench.action.navigateForward"
  1963. },
  1964. {
  1965. "key": "ctrl+shift+g",
  1966. "command": "-workbench.view.scm"
  1967. },
  1968. {
  1969. "key": "alt+h",
  1970. "command": "-git.viewFileHistory"
  1971. },
  1972. {
  1973. "key": "f12",
  1974. "command": "-editor.action.revealDefinition",
  1975. "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
  1976. },
  1977. {
  1978. "key": "cmd+k",
  1979. "command": "-workbench.action.terminal.clear",
  1980. "when": "terminalFocus"
  1981. },
  1982. {
  1983. "key": "cmd+l",
  1984. "command": "-expandLineSelection",
  1985. "when": "textInputFocus"
  1986. },
  1987. {
  1988. "key": "shift+f12",
  1989. "command": "-editor.action.goToReferences",
  1990. "when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
  1991. },
  1992. {
  1993. "key": "cmd+k cmd+left",
  1994. "command": "-workbench.action.focusLeftGroup"
  1995. },
  1996. {
  1997. "key": "cmd+k cmd+right",
  1998. "command": "-workbench.action.focusRightGroup"
  1999. },
  2000. {
  2001. "key": "shift+alt+f3",
  2002. "command": "-editor.action.dirtydiff.previous",
  2003. "when": "editorTextFocus"
  2004. },
  2005. {
  2006. "key": "alt+f3",
  2007. "command": "-editor.action.dirtydiff.next",
  2008. "when": "editorTextFocus"
  2009. },
  2010. {
  2011. "key": "shift+alt+f12",
  2012. "command": "-references-view.find",
  2013. "when": "editorHasReferenceProvider"
  2014. },
  2015. {
  2016. "key": "shift+f4",
  2017. "command": "-search.action.focusPreviousSearchResult",
  2018. "when": "hasSearchResult || inSearchEditor"
  2019. },
  2020. {
  2021. "key": "f4",
  2022. "command": "-dart.showTypeHierarchy",
  2023. "when": "editorLangId == 'dart'"
  2024. },
  2025. {
  2026. "key": "shift+cmd+f12",
  2027. "command": "-editor.action.peekImplementation",
  2028. "when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
  2029. },
  2030. {
  2031. "key": "f5",
  2032. "command": "-workbench.action.debug.start",
  2033. "when": "!inDebugMode"
  2034. },
  2035. {
  2036. "key": "shift+alt+f5",
  2037. "command": "-workbench.action.editor.previousChange",
  2038. "when": "editorTextFocus"
  2039. },
  2040. {
  2041. "key": "alt+f5",
  2042. "command": "-workbench.action.editor.nextChange",
  2043. "when": "editorTextFocus"
  2044. },
  2045. {
  2046. "key": "cmd+k cmd+b",
  2047. "command": "-editor.action.setSelectionAnchor",
  2048. "when": "editorTextFocus"
  2049. },
  2050. {
  2051. "key": "cmd+k cmd+m",
  2052. "command": "-workbench.extensions.action.showRecommendedKeymapExtensions"
  2053. },
  2054. {
  2055. "key": "alt+cmd+c",
  2056. "command": "-copyFilePath",
  2057. "when": "!editorFocus"
  2058. },
  2059. {
  2060. "key": "shift+cmd+x",
  2061. "command": "-workbench.view.extensions"
  2062. },
  2063. {
  2064. "key": "cmd+0",
  2065. "command": "-workbench.action.focusSideBar"
  2066. },
  2067. {
  2068. "key": "shift+cmd+m",
  2069. "command": "-workbench.actions.view.problems"
  2070. },
  2071. {
  2072. "key": "cmd+k cmd+9",
  2073. "command": "-editor.unfoldAllMarkerRegions",
  2074. "when": "editorTextFocus && foldingEnabled"
  2075. },
  2076. {
  2077. "key": "alt+cmd+r",
  2078. "command": "-revealFileInOS",
  2079. "when": "!editorFocus"
  2080. },
  2081. {
  2082. "key": "cmd+k shift+cmd+right",
  2083. "command": "-workbench.action.moveEditorRightInGroup"
  2084. },
  2085. {
  2086. "key": "cmd+k shift+cmd+left",
  2087. "command": "-workbench.action.moveEditorLeftInGroup"
  2088. },
  2089. {
  2090. "key": "cmd+1",
  2091. "command": "-workbench.action.focusFirstEditorGroup"
  2092. },
  2093. {
  2094. "key": "ctrl+q",
  2095. "command": "-workbench.action.quickOpenView"
  2096. },
  2097. {
  2098. "key": "alt+f1",
  2099. "command": "-editor.action.showAccessibilityHelp",
  2100. "when": "editorFocus"
  2101. },
  2102. {
  2103. "key": "cmd+a",
  2104. "command": "-editor.action.selectAll",
  2105. "when": "textInputFocus"
  2106. },
  2107. {
  2108. "key": "shift+cmd+l",
  2109. "command": "-editor.action.selectHighlights",
  2110. "when": "editorFocus"
  2111. },
  2112. {
  2113. "key": "cmd+i",
  2114. "command": "-editor.action.triggerSuggest",
  2115. "when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
  2116. },
  2117. {
  2118. "key": "cmd+k cmd+i",
  2119. "command": "-editor.debug.action.showDebugHover",
  2120. "when": "editorTextFocus && inDebugMode"
  2121. },
  2122. {
  2123. "key": "cmd+k cmd+i",
  2124. "command": "-editor.action.showHover",
  2125. "when": "editorTextFocus"
  2126. },
  2127. {
  2128. "key": "cmd+k cmd+a",
  2129. "command": "-keybindings.editor.addKeybinding",
  2130. "when": "inKeybindings && keybindingFocus"
  2131. },
  2132. {
  2133. "key": "alt+cmd+right",
  2134. "command": "-workbench.action.nextEditor"
  2135. },
  2136. {
  2137. "key": "cmd+r",
  2138. "command": "-workbench.action.reloadWindow",
  2139. "when": "isDevelopment"
  2140. },
  2141. {
  2142. "key": "alt+cmd+up",
  2143. "command": "-workbench.action.terminal.focusPreviousPane",
  2144. "when": "terminalFocus && terminalProcessSupported"
  2145. },
  2146. {
  2147. "key": "alt+cmd+left",
  2148. "command": "-workbench.action.terminal.focusPreviousPane",
  2149. "when": "terminalFocus && terminalProcessSupported"
  2150. },
  2151. {
  2152. "key": "alt+cmd+s",
  2153. "command": "-saveAll"
  2154. },
  2155. {
  2156. "key": "shift+up",
  2157. "command": "-cursorUpSelect",
  2158. "when": "textInputFocus"
  2159. },
  2160. {
  2161. "key": "shift+cmd+1",
  2162. "command": "-search.action.replace",
  2163. "when": "matchFocus && replaceActive && searchViewletVisible"
  2164. },
  2165. {
  2166. "key": "shift+cmd+1",
  2167. "command": "-editor.action.replaceOne",
  2168. "when": "editorFocus && findWidgetVisible"
  2169. },
  2170. {
  2171. "key": "shift+cmd+1",
  2172. "command": "-search.action.replaceAllInFile",
  2173. "when": "fileMatchFocus && replaceActive && searchViewletVisible"
  2174. },
  2175. {
  2176. "key": "shift+cmd+1",
  2177. "command": "-search.action.replaceAllInFolder",
  2178. "when": "folderMatchFocus && replaceActive && searchViewletVisible"
  2179. },
  2180. {
  2181. "key": "alt+f1",
  2182. "command": "-editor.action.showAccessibilityHelp"
  2183. },
  2184. {
  2185. "key": "cmd+k cmd+t",
  2186. "command": "-workbench.action.selectTheme"
  2187. },
  2188. {
  2189. "key": "cmd+f2",
  2190. "command": "-editor.action.changeAll",
  2191. "when": "editorTextFocus && editorTextFocus && !editorReadonly"
  2192. },
  2193. {
  2194. "key": "cmd+]",
  2195. "command": "-editor.action.indentLines",
  2196. "when": "editorTextFocus && !editorReadonly"
  2197. },
  2198. {
  2199. "key": "cmd+9",
  2200. "command": "-workbench.action.lastEditorInGroup"
  2201. },
  2202. {
  2203. "key": "cmd+4",
  2204. "command": "-workbench.action.focusFourthEditorGroup"
  2205. },
  2206. {
  2207. "key": "f5",
  2208. "command": "-workbench.action.debug.start",
  2209. "when": "debuggersAvailable && debugState == 'inactive'"
  2210. },
  2211. {
  2212. "key": "cmd+.",
  2213. "command": "-editor.action.quickFix",
  2214. "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
  2215. },
  2216. {
  2217. "key": "cmd+k cmd+l",
  2218. "command": "-editor.toggleFold",
  2219. "when": "editorTextFocus && foldingEnabled"
  2220. },
  2221. {
  2222. "key": "cmd+k cmd+]",
  2223. "command": "-editor.unfoldRecursively",
  2224. "when": "editorTextFocus && foldingEnabled"
  2225. },
  2226. {
  2227. "key": "cmd+k cmd+[",
  2228. "command": "-editor.foldRecursively",
  2229. "when": "editorTextFocus && foldingEnabled"
  2230. },
  2231. {
  2232. "key": "cmd+k cmd+/",
  2233. "command": "-editor.foldAllBlockComments",
  2234. "when": "editorTextFocus && foldingEnabled"
  2235. },
  2236. {
  2237. "key": "cmd+k cmd+-",
  2238. "command": "-editor.foldAllExcept",
  2239. "when": "editorTextFocus && foldingEnabled"
  2240. },
  2241. {
  2242. "key": "alt+cmd+[",
  2243. "command": "-editor.fold",
  2244. "when": "editorTextFocus && foldingEnabled"
  2245. },
  2246. {
  2247. "key": "cmd+k cmd+1",
  2248. "command": "-editor.foldLevel1",
  2249. "when": "editorTextFocus && foldingEnabled"
  2250. },
  2251. {
  2252. "key": "cmd+k cmd+2",
  2253. "command": "-editor.foldLevel2",
  2254. "when": "editorTextFocus && foldingEnabled"
  2255. },
  2256. {
  2257. "key": "cmd+k cmd+3",
  2258. "command": "-editor.foldLevel3",
  2259. "when": "editorTextFocus && foldingEnabled"
  2260. },
  2261. {
  2262. "key": "cmd+k cmd+4",
  2263. "command": "-editor.foldLevel4",
  2264. "when": "editorTextFocus && foldingEnabled"
  2265. },
  2266. {
  2267. "key": "cmd+k cmd+5",
  2268. "command": "-editor.foldLevel5",
  2269. "when": "editorTextFocus && foldingEnabled"
  2270. },
  2271. {
  2272. "key": "cmd+k cmd+6",
  2273. "command": "-editor.foldLevel6",
  2274. "when": "editorTextFocus && foldingEnabled"
  2275. },
  2276. {
  2277. "key": "cmd+k cmd+7",
  2278. "command": "-editor.foldLevel7",
  2279. "when": "editorTextFocus && foldingEnabled"
  2280. },
  2281. {
  2282. "key": "ctrl+alt+n",
  2283. "command": "-code-runner.run"
  2284. },
  2285. {
  2286. "key": "cmd+=",
  2287. "command": "-workbench.action.zoomIn"
  2288. },
  2289. {
  2290. "key": "cmd+-",
  2291. "command": "-workbench.action.zoomOut"
  2292. },
  2293. {
  2294. "key": "alt+cmd+.",
  2295. "command": "-editor.action.autoFix",
  2296. "when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)quickfix\\b/"
  2297. },
  2298. ]

用户设置 settings.json

{
    // 启用使用鼠标和键进行列选择。
    "editor.columnSelection": false,
    // 在通过鼠标添加多个光标时使用的修改键。“转到定义”和“打开链接”功能所需的鼠标动作将会相应调整,不与多光标修改键冲突。[阅读详细信息](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier)。
    //  - ctrlCmd: 映射为 `Ctrl` (Windows 和 Linux) 或 `Command` (macOS)。
    //  - alt: 映射为 `Alt` (Windows 和 Linux) 或 `Option` (macOS)。
    "editor.multiCursorModifier": "alt", //ctrlCmd | alt
    //不是预览模式打开编辑器,“转到定义”和“打开链接”就不会覆盖原来打开的文件
    "workbench.editor.enablePreview": false,
    //禁止保存自动格式化
    "editor.formatOnSave": false,
    //控制自动保存脏编辑器之前经过的延迟(以毫秒为单位)仅当files.autoSave = "afterDelay",
    "files.autoSaveDelay": 3000,
    "workbench.iconTheme": "material-icon-theme",
    //更改文件夹图标的颜色
    "material-icon-theme.folders.color": "#90a4ae",
    //控制字体粗细
    "editor.fontWeight": "500",
    "update.mode": "manual",
    //忽略“确实git的警告”
    "git.enableSmartCommit": true,
    "git.confirmEmptyCommits": false,
    "git.autofetch": true,
    "git.confirmSync": false,
    // vscode-gitlens 隐藏每行代码的git历史记录
    "gitlens.currentLine.enabled": false,
    //控制缩略图(迷你地图)的宽度大小
    "editor.minimap.maxColumn": 80,
    //显示行
    "editor.lineNumbers": "on",
    //一个制表符等于的空格数
    "editor.tabSize": 2,
    //新打开的的窗口最大化
    "window.newWindowDimensions": "maximized",
    //禁止演练欢迎页
    "workbench.welcomePage.walkthroughs.openOnInstall": false,
    //禁止演练欢迎页 new => File 菜单和欢迎页面提供的项目
    "workbench.welcome.experimental.startEntries": false,
    //再次打开面板时候,恢复上一次输入的内容
    "workbench.commandPalette.preserveInput": true,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "emmet.syntaxProfiles": {
        "vue-html": "html",
        "vue": "html"
    },
    "emmet.triggerExpansionOnTab": true,
    "emmet.includeLanguages": {
        "vue-html": "html",
        "vue": "html",
        "wxml": "html"
    },
    "html.format.indentHandlebars": true,
    "html.format.indentInnerHtml": true,
    "workbench.colorTheme": "Monokai Dimmed",
    "material-icon-theme.showWelcomeMessage": false,
    "typescript.updateImportsOnFileMove.enabled": "always",
    "terminal.integrated.shell.osx": "/bin/bash",
    "javascript.implicitProjectConfig.experimentalDecorators": true,
    "terminal.integrated.profiles.osx": {
        "bash": {
            "path": "bash",
            "args": [
                "-l"
            ],
            "icon": "terminal-bash"
        },
        "zsh": {
            "path": "zsh",
            "args": [
                "-l"
            ]
        },
        "fish": {
            "path": "fish",
            "args": [
                "-l"
            ]
        },
        "tmux": {
            "path": "tmux",
            "icon": "terminal-tmux"
        },
        "pwsh": {
            "path": "pwsh",
            "icon": "terminal-powershell"
        }
    },
    "explorer.confirmDelete": false,
    "terminal.integrated.rendererType": "dom",
    "markdown-table-formatter.markdownGrammarScopes": [
        "markdown",
        "javascriptreact"
    ],
    "workbench.fontAliasing": "antialiased",
    //以像素为单位控制字体大小
    "editor.fontSize": 13,
    "docthis.includeDescriptionTag": true,
    "docthis.includeAuthorTag": true,
    "docthis.authorName": "一缕清风",
    "docthis.inferTypesFromNames": true,
    "docthis.enableHungarianNotationEvaluation": true,
    "dart.flutterSdkPath": "/Applications/flutter",
    "dart.checkForSdkUpdates": false,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    //万能代码运行code-runner在编辑器终端运行
    "code-runner.runInTerminal": true,
    //编辑区域tree的指参考线 
    "editor.renderIndentGuides": false,
    "workbench.tree.renderIndentGuides": "none",
    // 整体选中代码高亮 gutter行号高亮 | line整行高亮
    // "editor.renderLineHighlight": "gutter",
    "code-runner.executorMap": {
        "python": "python3",
        "csharp": "dotnet run",
        "java": "cd $dir && javac -encoding utf-8 $fileName && java $fileNameWithoutExt"
    },
    //是否在搜索中跟踪符号链接(这个是引起内存爆炸的罪魁祸首)
    "search.followSymlinks": false,
    //用于配置用于排除文件和文件夹的 glob 模式 (这个是引起内存爆炸的罪魁祸首)
    "search.exclude": {
        "**/node_modules": false,
        "**/bower_components": false
    },
    "python.jediEnabled": false,
    "atomKeymap.promptV3Features": true,
    "timeline.excludeSources": [],
    "java.semanticHighlighting.enabled": true,
    // 配置用于排除文件和文件夹的 glob 模式。例如,文件资源管理器根据此设置决定要显示或隐藏哪些文件和文件夹。请参阅"#search.exclude#"设置以定义特定于搜索的排除。在[此处](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options)了解更多关于 glob 模式的信息。
    "files.exclude": {
        "**/.classpath": true,
        "**/.factorypath": true,
        "**/.project": true,
        "**/.settings": true,
        // "**/node_modules": true,
        // "**/react-native-shell": true,
        // "**/dist": true,
        "**/.vscode": true,
        "**/.idea": true,
    },
    "[dart]": {
        "editor.formatOnSave": false,
        "editor.formatOnType": false,
        "editor.rulers": [
            120
        ],
        "editor.selectionHighlight": false,
        "editor.suggest.snippetsPreventQuickSuggestions": false,
        "editor.suggestSelection": "first",
        "editor.tabCompletion": "onlySnippets",
        "editor.wordBasedSuggestions": false
    },
    "dart.debugExternalLibraries": true,
    "dart.debugSdkLibraries": true,
    "python.languageServer": "Pylance",
    "files.associations": {
        "*.cjson": "jsonc",
        "*.wxss": "css",
        "*.wxs": "javascript"
    },
    "minapp-vscode.disableAutoConfig": true,
    "C_Cpp.errorSquiggles": "Enabled",
    "java.requirements.JDK11Warning": false,
    //定义一个默认格式化程序
    "editor.defaultFormatter": "vscode.configuration-editing",
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "js/ts.implicitProjectConfig.experimentalDecorators": true,
    "[javascriptreact]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[typescriptreact]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[typescript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "[less]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[css]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[cpp]": {
        "editor.defaultFormatter": "ms-vscode.cpptools"
    },
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "[java]": {
        "editor.defaultFormatter": "redhat.java"
    },
    "C_Cpp.updateChannel": "Insiders",
    "java.format.settings.profile": "GoogleStyle",
    "java.configuration.runtimes": [],
    "liveServer.settings.donotShowInfoMsg": true,
    "csharp.referencesCodeLens.enabled": false,
    "workbench.startupEditor": "none",
    "workbench.editor.untitled.hint": "hidden",
    "java.format.settings.url": "",
    "editor.formatOnPaste": false,
    "security.workspace.trust.untrustedFiles": "open",
    "kotlin.languageServer.debugAttach.autoSuspend": true,
    "editor.renderWhitespace": "none",
    "editor.highlightActiveIndentGuide": false,
    "workbench.tree.indent": 10,
    "html.format.wrapAttributesIndentSize": 10,
    "prettier.useTabs": true,
    "editor.autoIndent": "none",
    "window.zoomLevel": 1,
    "kotlin.languageServer.enabled": false,
    "kotlin.debugAdapter.enabled": false,
    "workbench.editorAssociations": {
        "*.class": "default"
    },
    "workbench.editor.showTabs": false,
    "workbench.sideBar.location": "right",
    // "http.proxy": "http://127.0.0.1:1080",
    // "http.proxySupport": "on",
}

格式化配置 formatter.json

{
    "onSave": true,
    "javascript": {
        "indent_size": 2,
        "indent_char": " ",
        "eol": "auto",
        "preserve_newlines": true,
        "break_chained_methods": false,
        "max_preserve_newlines": 0,
        "space_in_paren": false,
        "space_in_empty_paren": false,
        "jslint_happy": false,
        "space_after_anon_function": false,
        "keep_array_indentation": false,
        "space_before_conditional": true,
        "unescape_strings": false,
        "wrap_line_length": 0,
        "e4x": false,
        "end_with_newline": false,
        "comma_first": false,
        "brace_style": "collapse-preserve-inline"
    },
    "css": {
        "indent_size": 2,
        "indentCharacter": " ",
        "indent_char": " ",
        "selector_separator_newline": true,
        "end_with_newline": false,
        "newline_between_rules": true,
        "eol": "\n"
    },
    "html": {
        "indent_inner_html": false,
        "indent_size": 2,
        "indent_char": " ",
        "indent_character": " "
    }
}