集成的Git、调试、扩展的免费开源编程软件 Microsoft在2015年4月30日Build 开发者大会上正式宣布了 Visual Studio Code 项目:一个运行于 Mac OS X、Windows和 Linux 之上的,针对于编写现代 Web 和云应用的跨平台源代码编辑器
快捷键设置 settings.json
// 将键绑定放在此文件中以覆盖默认值auto[]
[
// ————————————————— 注释详情 —————————————————
// ◆◆◆ @source:user: 表示用户自己设置
// ◇◇◇ @source:default : 系统自带的设置
// ✅ 这个命令正常在mac和win上运行已经没问题了表示
// ❌
// 00 表示复制一个这样的操作
// - 表示添加新的「command」或「key」
// + 表示添加新的「command」或「key」
// ? 未清楚的「command」或「key」
// ————————————————— 【when】 —————————————————
// 命令当在哪里生效,不写when则是在编辑器全局生效
// terminalFocus 在终端
// textInputFocus && !editorReadonly 文本输入焦点和并非编辑只读
// inQuickOpen && inViewsPicker 监听器&&查询打开
// findWidgetVisible 查找可见的小部件
// matchFocus 匹配焦点
// replaceActive 替换
// searchViewletVisible 搜索视图可见
// remoteFileDialogVisible 远程文件对话框可见
// "!editorFocus" 不在编辑的时候
// isDevelopment 是开发者
// "!editorIsOpen" 没有编辑器被打开
// "!multipleEditorGroups" 没有编辑器分组
//////////////////////////////////////////////////////////////////////////////
// —————————————————————— 有冲突、或者按键一统、未决定 ——————————————————————
// {
// "key": "f2", //◇◇◇ 显示Emmet命令
// "command": "workbench.action.showEmmetCommands"
// },
// {
// "key": "cmd+alt+r", //◇◇◇ toggleFindRegex 切换查找正则表达式
// "command": "toggleFindRegex",
// "when": "editorFocus"
// },
// {
// "key": "alt+cmd+[Comma]", //◆◆◆ 搜索:聚焦上一搜索结果 ???
// "command": "search.action.focusPreviousSearchResult",
// "when": "hasSearchResult || inSearchEditor"
// },
// {
// "key": "alt+cmd+[Period]", //◆◆◆ 搜索:聚焦下一搜索结果 ???
// "command": "search.action.focusNextSearchResult",
// "when": "hasSearchResult || inSearchEditor"
// },
{
"key": "alt+cmd+c", //◇◇◇ toggleFindCaseSensitive 切换匹配大小写
"command": "toggleFindCaseSensitive",
"when": "editorFocus"
},
{
"key": "alt+cmd+v", //◇◇◇ toggleFindWholeWord 切换查找整个单词
"command": "toggleFindWholeWord",
"when": "editorFocus"
},
// —————————————————————— 系统设置 ——————————————————————
{
"key": "f1", //◆◆◆ 显示所有命令
"command": "workbench.action.showCommands"
},
{
"key": "cmd+1", //◆◆◆ 聚焦到"导航路径"视图 00
"command": "breadcrumbs.focusAndSelect"
},
{
"key": "alt+f1", //◆◆◆ 视图:打开视图 (可以停顿选择)
"command": "workbench.action.openView"
},
{
"key": "ctrl+q", //◆◆◆ 视图:打开视图 (可以停顿选择)
"command": "workbench.action.openView"
// "command": "workbench.action.quickOpenView" //视图:快速打开视图,(松开就选择进去了)
},
{
"key": "f5", // 显示悬停 长按ctrl键即可
"command": "editor.action.showDefinitionPreviewHover"
},
{
"key": "cmd+4", //◆◆◆ 视图:显示运行和调试
"command": "workbench.view.debug"
},
{
"key": "shift+cmd+2", //◆◆◆ 视图:大纲
"command": "outline.focus"
},
{
"key": "cmd+8", //◆◆◆ 视图:大纲
"command": "outline.focus"
},
{
"key": "shift+cmd+0", //◆◆◆ 视图:显示源代码管理
"command": "workbench.view.scm"
},
{
"key": "f5", //◆◆◆ Debug:开始调试
"command": "workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "shift+cmd+f9", //◆◆◆ 视图:问题
"command": "workbench.actions.view.problems"
},
{
"key": "shift+cmd+f10", //◆◆◆ 视图:输出
"command": "workbench.panel.output.focus"
},
{
"key": "shift+cmd+f11", //◆◆◆ 视图:调试控制台
"command": "workbench.debug.action.toggleRepl"
},
{
"key": "shift+cmd+f12", //◆◆◆ 视图:切换终端
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+f12", //◆◆◆ 视图:切换终端
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "cmd+f12", //◆◆◆ 视图:切换集成终端
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+f11", //◆◆◆ 资源管理器:聚焦到“npm脚本”视图
"command": "npm.focus"
},
{
"key": "cmd+f11", //◆◆◆ 资源管理器:聚焦到“npm脚本”视图
"command": "npm.focus"
},
{
"key": "shift+cmd+b", //◆◆◆ 视图:切换面板
"command": "workbench.action.togglePanel"
},
{
"key": "cmd+=", //◆◆◆ 视图:放大
"command": "workbench.action.zoomIn"
},
{
"key": "cmd+-", //◆◆◆ 视图:缩小
"command": "workbench.action.zoomOut"
},
// —————————————————————— 编码代码定位、查看方法、定位实现、引用 ——————————————————————
{
"key": "cmd+2", //◆◆◆ 转到编辑器中的符号
"command": "workbench.action.gotoSymbol"
},
{
"key": "cmd+3", //◆◆◆ 转到工作区中的符号
"command": "workbench.action.showAllSymbols"
},
{
"key": "cmd+f12", //◇◇◇ 转到实现
"command": "editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "shift+alt+l", //◇◇◇ 查看实现
"command": "editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+[Semicolon]", // ◆◆◆ 找到全部实现
"command": "references-view.findImplementations"
},
{
"key": "cmd+;", //◇◇◇ 转到定义 +-
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+[Semicolon]", //◇◇◇ 转到定义 +-
"command": "editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+'", //◇◇◇ 转到引用 --
"command": "editor.action.goToReferences",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+'", // ◇◇◇ 转到全部引用 --
"command": "references-view.find",
"when": "editorHasReferenceProvider"
},
{
"key": "shift+cmd+h", //◇◇◇ 层级关系、继承关系
"command": "dart.showTypeHierarchy",
"when": "editorLangId == 'dart'"
},
// {
// "key": "alt+enter", //◇◇◇ 自动修复 ?-
// "command": "editor.action.autoFix"
// },
{
"key": "alt+enter", //◇◇◇ 快速修复
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+enter", //◇◇◇ 触发建议
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "alt+/", //◇◇◇ 触发建议
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+alt+space", //◆◆◆ 万能运行代码
"command": "code-runner.run"
},
// —————————————————————— 光标操作 ——————————————————————
{
"key": "cmd+left", //◆◆◆ 后退
"command": "workbench.action.navigateBack"
},
{
"key": "cmd+right", //◆◆◆ 前进
"command": "workbench.action.navigateForward"
},
{
"key": "cmd+up", //◆◆◆ 光标到顶部
"command": "cursorTop",
"when": "textInputFocus"
},
{
"key": "cmd+home", //◆◆◆ 光标到顶部
"command": "cursorTop",
"when": "textInputFocus"
},
{
"key": "cmd+down", //◆◆◆ 光标到底部
"command": "cursorBottom",
"when": "textInputFocus"
},
{
"key": "cmd+end", //◆◆◆ 光标到底部
"command": "cursorBottom",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+up", //◆◆◆ 光标选择到顶部
"command": "cursorTopSelect",
"when": "textInputFocus"
},
{
"key": "cmd+shift+home", //◆◆◆ 光标选择到顶部
"command": "cursorTopSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+down", //◆◆◆ 光标选择到底部
"command": "cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "cmd+shift+end", //◆◆◆ 光标选择到底部
"command": "cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "shift+up", //◆◆◆ 光标向上选择
"command": "cursorUpSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+up", //◆◆◆ 光标向上选择
"command": "cursorUpSelect",
"when": "textInputFocus"
},
{
"key": "shift+down", //◆◆◆ 光标向上选择
"command": "cursorDownSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+down", //◆◆◆ 光标向上选择
"command": "cursorDownSelect",
"when": "textInputFocus"
},
{
"key": "alt+up", //◆◆◆ 在上面添加光标
"command": "editor.action.insertCursorAbove",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down", //◆◆◆ 在下面添加光标
"command": "editor.action.insertCursorBelow",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+left", //◆◆◆ 光标到单词左边
"command": "cursorWordStartLeft",
"when": "textInputFocus"
},
{
"key": "alt+right", //◆◆◆ 光标到单词右边 (勿删)
"command": "cursorWordEndRight",
"when": "textInputFocus"
},
{
"key": "ctrl+a", //◆◆◆ 光标移动到行首
"command": "cursorLineStart",
"when": "textInputFocus"
},
{
"key": "ctrl+e", //◆◆◆ 光标移动到行尾
"command": "cursorLineEnd",
"when": "textInputFocus"
},
// {
// "key": "alt+cmd+left", //◆◆◆ 光标移动到行首 (勿删)
// "command": "cursorLineStart",
// "when": "textInputFocus"
// },
// {
// "key": "alt+cmd+right", //◆◆◆ 光标移动到行尾 (勿删)
// "command": "cursorLineEnd",
// "when": "textInputFocus"
// },
{
"key": "alt+cmd+left", //◆◆◆ 光标到末首
"command": "cursorHome",
"when": "textInputFocus"
},
{
"key": "alt+cmd+right", //◆◆◆ 光标到末尾
"command": "cursorEnd",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+right", // ◆◆◆ 光标选择到行尾
"command": "cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+left", // ◆◆◆ 光标选择到行首
"command": "cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "cmd+d", //◆◆◆ 将下一个查找匹配项添加到选择
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "shift+cmd+d", //◆◆◆ 将上次选择移动到下一个查找匹配项
"command": "editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "alt+d", // ◆◆◆ 将选择内容添加到上一查找匹配项 ++
"command": "editor.action.addSelectionToPreviousFindMatch"
},
{
"key": "alt+shift+d", //◆◆◆ 将上个选择内容移动到上一查找匹配项 ++
"command": "editor.action.moveSelectionToPreviousFindMatch"
},
{
"key": "shift+alt+cmd+d", //◆◆◆ 更改所有匹配项目
"command": "editor.action.changeAll",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+k shift+cmd+d", //◆◆◆ 更改所有匹配项目
"command": "editor.action.changeAll",
"when": "editorTextFocus && editorTextFocus && !editorReadonly"
},
// —————————————————————— 系统设置 ——————————————————————
{
"key": "cmd+[Comma]", //◆◆◆ 首选项:打开用户设置
"command": "workbench.action.openGlobalSettings"
},
{
"key": "cmd+k cmd+u", //◆◆◆ 首选项:打开用户设置
"command": "workbench.action.openGlobalSettings"
},
{
"key": "cmd+k cmd+y", //◆◆◆ 首选项:打开默认设置(JSON)
"command": "workbench.action.openRawDefaultSettings"
},
{
"key": "cmd+k cmd+i", //◆◆◆ 首选项:打开设置(json)
"command": "workbench.action.openSettingsJson"
},
{
"key": "cmd+k cmd+a", //◆◆◆ 首选项:打开默认键盘快捷键(JSON)
"command": "workbench.action.openDefaultKeybindingsFile"
},
{
"key": "cmd+k cmd+s", //◆◆◆ 首选项:打开键盘快捷方式
"command": "workbench.action.openGlobalKeybindings"
},
{
"key": "cmd+k cmd+d", //◆◆◆ 首选项:打开键盘快捷方式(JSON)
"command": "workbench.action.openGlobalKeybindingsFile"
},
// —————————————————————— 终端面板设置 ——————————————————————
{
"key": "alt+left", //◆◆◆ 终端:移动到行尾
"command": "workbench.action.terminal.moveToLineStart",
"when": "terminalFocus"
},
{
"key": "alt+right", //◆◆◆ 终端:移动到行首
"command": "workbench.action.terminal.moveToLineEnd",
"when": "terminalFocus"
},
{
"key": "cmd+backspace", //◆◆◆ 终端:删除左侧的字符
"command": "workbench.action.terminal.deleteWordLeft",
"when": "terminalFocus"
},
{
"key": "alt+backspace", //◆◆◆ 终端:删除左侧的字符
"command": "workbench.action.terminal.deleteWordLeft",
"when": "terminalFocus"
},
{
"key": "alt+delete", //◆◆◆ 终端:删除右侧的字符
"command": "workbench.action.terminal.deleteWordRight",
"when": "terminalFocus"
},
{
"key": "cmd+delete", //◆◆◆ 终端:删除右侧的字符
"command": "workbench.action.terminal.deleteWordRight",
"when": "terminalFocus"
},
{
"key": "cmd+\\ cmd+\\", //◆◆◆ 终端:拆分编辑器 或者说复制
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "cmd+oem_5 cmd+oem_5", //◆◆◆ 终端:拆分编辑器 或者说复制 「win对应按键」
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "alt+cmd+f12", //◆◆◆ 终端:打开新的外部终端
"command": "workbench.action.terminal.openNativeConsole",
// "when": "!terminalFocus"
},
// {
// "key": "cmd+k shift+cmd+left", //◆◆◆ 终端:聚焦到上一窗口(不太重要)
// "command": "workbench.action.terminal.focusPreviousPane",
// "when": "terminalFocus"
// },
// {
// "key": "cmd+k shift+cmd+right", //◆◆◆ 终端:聚焦到下一窗口 (不太重要)
// "command": "workbench.action.terminal.focusNextPane",
// "when": "terminalFocus"
// },
{
"key": "cmd+[Backslash] cmd+[Backslash]", //◆◆◆ 视图:拆分终端
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "cmd+z", //◆◆◆ 终端:撤销
"command": "undo",
"when": "terminalFocus"
},
// —————————————————————— 通用快捷键 ——————————————————————
{
"key": "cmd+v", //◆◆◆ 粘贴
"command": "editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+x", //◆◆◆ 剪贴
"command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+f", //◆◆◆ 查找
"command": "actions.find"
},
{
"key": "cmd+a", //◆◆◆ 全选
"command": "editor.action.selectAll",
"when": "textInputFocus"
},
{
"key": "cmd+a", //◆◆◆ 全选
"command": "list.selectAll",
"when": "listFocus && listSupportsMultiselect && !inputFocus"
},
{
"key": "cmd+a", //◆◆◆ 全选
"command": "editor.action.webvieweditor.selectAll",
"when": "!editorFocus && !inputFocus && activeEditor == 'WebviewEditor'"
},
{
"key": "cmd+z", //◆◆◆ 撤销
"command": "editor.action.customEditor.undo",
"when": "focusedCustomEditorIsEditable && !inputFocus"
},
{
"key": "cmd+z", //◆◆◆ 撤销
"command": "editor.action.webvieweditor.undo",
"when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
},
{
"key": "cmd+z", //◆◆◆ 撤销
"command": "undo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+z", //◆◆◆ 反撤销
"command": "editor.action.customEditor.redo",
"when": "focusedCustomEditorIsEditable && !inputFocus"
},
{
"key": "shift+cmd+z", //◆◆◆ 反撤销
"command": "editor.action.webvieweditor.redo",
"when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
},
{
"key": "shift+cmd+z", //◆◆◆ 反撤销
"command": "redo",
"when": "textInputFocus && !editorReadonly"
},
// —————————————————————— 窗口与编辑器 ——————————————————————
{
"key": "shift+alt+cmd+n", //◆◆◆ 新建窗口
"command": "workbench.action.newWindow"
},
{
"key": "cmd+w", //◆◆◆ 视图:关闭编辑器
"command": "workbench.action.closeActiveEditor"
},
{
"key": "shift+alt+cmd+w", //◆◆◆ 关闭窗口 具体:退出了vscode编辑器
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "alt+cmd+w", //◆◆◆ 视图:关闭组中的其他编辑器
"command": "workbench.action.closeOtherEditors"
},
{
"key": "shift+cmd+w", //◆◆◆ 视图:关闭所有编辑器
"command": "workbench.action.closeAllEditors"
},
{
"key": "cmd+[Backslash] cmd+s", //◆◆◆ 视图:关闭组中一保存的编辑器
"command": "workbench.action.closeUnmodifiedEditors"
},
{
"key": "cmd+[Backslash] cmd+w", //◆◆◆ 视图:关闭组中的所有编辑器
"command": "workbench.action.closeEditorsInGroup"
},
{
"key": "shift+cmd+k shift+cmd+up", //◆◆◆ 视图:向上移动编辑器组
"command": "workbench.action.moveActiveEditorGroupUp"
},
{
"key": "shift+cmd+k shift+cmd+down", //◆◆◆ 视图:向下移动编辑器组
"command": "workbench.action.moveActiveEditorGroupDown"
},
{
"key": "shift+cmd+k shift+cmd+left", //◆◆◆ 视图:向左移动编辑器组
"command": "workbench.action.moveActiveEditorGroupLeft"
},
{
"key": "shift+cmd+k shift+cmd+right", //◆◆◆ 视图:向右移动编辑器组
"command": "workbench.action.moveActiveEditorGroupRight"
},
{
"key": "cmd+k cmd+left", //◆◆◆ 视图:向左移动编辑器
"command": "workbench.action.moveEditorLeftInGroup"
},
{
"key": "cmd+k cmd+right", //◆◆◆ 视图:向右移动编辑器
"command": "workbench.action.moveEditorRightInGroup"
},
{
"key": "cmd+[Backslash] cmd+[Backslash]", //◆◆◆ 视图:拆分编辑器
"command": "workbench.action.splitEditor",
"when": "!terminalFocus"
},
{
"key": "cmd+k cmd+[Backslash]", //◆◆◆ 视图:正交拆分编辑器
"command": "workbench.action.splitEditorOrthogonal"
},
{
"key": "cmd+[Backslash] cmd+0", //◆◆◆ 视图:切换垂直/水平编辑器布局
"command": "workbench.action.toggleEditorGroupLayout"
},
{
"key": "cmd+[Backslash] cmd+1", //◆◆◆ 视图:单行编辑器布局
"command": "workbench.action.editorLayoutSingle"
},
{
"key": "cmd+[Backslash] cmd+2", //◆◆◆ 视图:双行编辑器布局
"command": "workbench.action.editorLayoutTwoColumns"
},
{
"key": "cmd+[Backslash] cmd+3", //◆◆◆ 视图:三行编辑器布局
"command": "workbench.action.editorLayoutThreeColumns"
},
{
"key": "cmd+[Backslash] cmd+4", //◆◆◆ 视图:2x2网格编辑器布局
"command": "workbench.action.editorLayoutTwoByTwoGrid"
},
{
"key": "cmd+[Backslash] cmd+q", //◆◆◆ 视图:双列编辑器布局
"command": "workbench.action.editorLayoutTwoRows"
},
{
"key": "cmd+[Backslash] cmd+a", //◆◆◆ 视图:三列编辑器布局
"command": "workbench.action.editorLayoutThreeRows"
},
{
"key": "cmd+[Backslash] cmd+up", //◆◆◆ 视图:向上拆分编辑器组
"command": "workbench.action.splitEditorUp"
},
{
"key": "cmd+[Backslash] cmd+down", //◆◆◆ 视图:向下拆分编辑器组
"command": "workbench.action.splitEditorDown"
},
{
"key": "cmd+[Backslash] cmd+left", //◆◆◆ 视图:向左拆分编辑器组
"command": "workbench.action.splitEditorLeft"
},
{
"key": "cmd+[Backslash] cmd+right", //◆◆◆ 视图:向右拆分编辑器组
"command": "workbench.action.splitEditorRight"
},
// {
// "key": "shift+alt+cmd+left", //◆◆◆ 视图:聚焦到左侧编辑器组 (不太重要)
// "command": "workbench.action.focusLeftGroup"
// },
// {
// "key": "shift+alt+cmd+right", //◆◆◆ 视图:聚焦到右侧编辑器组 (不太重要)
// "command": "workbench.action.focusRightGroup"
// },
// {
// "key": "shift+alt+cmd+left", //◆◆◆ 视图:聚焦到上一组编辑器
// "command": "workbench.action.focusPreviousGroup",
// },
// {
// "key": "shift+alt+cmd+right", //◆◆◆ 视图:聚焦到下一组编辑器
// "command": "workbench.action.focusNextGroup",
// },
{
"key": "shift+cmd+left", //◆◆◆ 视图:打开上一个编辑器
"command": "workbench.action.previousEditor"
},
{
"key": "shift+cmd+right", //◆◆◆ 视图:打开下一个编辑器
"command": "workbench.action.nextEditor"
},
{
"key": "cmd+[Backslash] cmd+[BracketRight]", //◆◆◆ 视图:切换编辑组大小
"command": "workbench.action.toggleEditorWidths"
},
{
"key": "cmd+[Backslash] cmd+[BracketLeft]", //◆◆◆ 视图:切换编辑组大小
"command": "workbench.action.toggleEditorWidths"
},
// —————————————————————— 文件 ——————————————————————
{
"key": "cmd+n", //◆◆◆ 文件:新建文件
"command": "explorer.newFile"
},
{
"key": "alt+cmd+n",
"command": "revealFileInOS", //◆◆◆ 在finder中显示文件
// "when": "!editorFocus"
},
{
"key": "shift+cmd+n", //◆◆◆ 文件:新建文件夹
"command": "explorer.newFolder"
},
{
"key": "shift+cmd+1", //◆◆◆ 视图:显示资源管理器
"command": "workbench.view.explorer"
},
{
"key": "shift+alt+cmd+1", //◆◆◆ 在资源管理器中折叠文件夹
"command": "workbench.files.action.collapseExplorerFolders"
},
{
"key": "cmd+t", //◆◆◆ 刷新资源管理器
"command": "workbench.files.action.refreshFilesExplorer"
},
{
"key": "shift+cmd+k shift+cmd+r", //◆◆◆ 刷新资源管理器
"command": "workbench.files.action.refreshFilesExplorer"
},
{
"key": "shift+alt+cmd+r", //◆◆◆ 开发人员: 重新加载窗口
"command": "workbench.action.reloadWindow",
// "when": "isDevelopment"
},
{
"key": "shift+alt+cmd+k shift+alt+cmd+r", //◆◆◆ 开发人员: 重新加载窗口
"command": "workbench.action.reloadWindow",
// "when": "isDevelopment"
},
{
"key": "shift+alt+cmd+t", //◆◆◆ 开发人员: 重新加载窗口
"command": "workbench.action.reloadWindow",
// "when": "isDevelopment"
},
{
"key": "shift+cmd+c", //◆◆◆ 文件:复制活动文件的相对路径
"command": "copyRelativeFilePath",
},
{
"key": "shift+alt+cmd+c", //◆◆◆ 文件:复制活动文件的相对路径
"command": "copyFilePath",
},
{
"key": "cmd+e", //◆◆◆ 转到文件...
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+shift+e", //◆◆◆ 转到文件...
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+shift+t", //◆◆◆ 文件:打开最近的文件...
"command": "workbench.action.openRecent"
},
{
"key": "shift+cmd+[Comma]", //◆◆◆ 跳到下一个更改 --
"command": "workbench.action.editor.previousChange",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+[Period]", //◆◆◆ 跳到下一个更改
"command": "workbench.action.editor.nextChange",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+[Comma]", //◆◆◆ 显示上一个更改
"command": "editor.action.dirtydiff.previous",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+[Period]", //◆◆◆ 显示下一个更改
"command": "editor.action.dirtydiff.next",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+e", //◆◆◆ 切换窗口...
"command": "workbench.action.switchWindow"
},
{
"key": "shift+alt+cmd+e", //◆◆◆ 切换窗口...
"command": "workbench.action.switchWindow"
},
{
"key": "cmd+o", //◆◆◆ 文件:打开...
"command": "workbench.action.files.openFileFolder"
},
{
"key": "cmd+shift+o", //◆◆◆ 文件:打开...
"command": "workbench.action.files.openFileFolder"
},
{
"key": "cmd+k cmd+o", //◆◆◆ 文件:在新窗口打开活动的文件
"command": "workbench.action.files.showOpenedFileInNewWindow"
},
{
"key": "cmd+s", //◆◆◆ 文件:保存
"command": "workbench.action.files.save"
},
{
"key": "shift+cmd+s", //◆◆◆ 文件:保存所有文件
"command": "workbench.action.files.saveFiles"
},
{
"key": "shift+cmd+s", //◆◆◆ 文件:全部保存
"command": "workbench.action.files.saveAll"
},
{
"key": "cmd+k s", //◆◆◆ 文件:保存但是不更改格式 --
"command": "workbench.action.files.saveWithoutFormatting"
},
{
"key": "alt+cmd+s", //◆◆◆ 文件:另存为...
"command": "workbench.action.files.saveAs"
},
{
// "key": "cmd+shift+alt+s", //◆◆◆ 文件:切换开关自动保存
"key": "alt+s", //◆◆◆ 文件:切换开关自动保存
"command": "workbench.action.toggleAutoSave"
},
// —————————————————————— 查找、替换 ——————————————————————
{
"key": "cmd+shift+f", //◆◆◆ 搜索:在文件中查找
"command": "workbench.action.findInFiles"
},
// 查找软索引???
{
"key": "cmd+r", //◆◆◆ 替换
"command": "editor.action.startFindReplaceAction"
},
{
"key": "cmd+shift+r", //◆◆◆ 搜索:在文件中替换
"command": "workbench.action.replaceInFiles"
},
{
"key": "cmd+backspace", //◆◆◆ deleteWordLeft
"command": "deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+backspace", //◆◆◆ deleteWordLeft
"command": "deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+w", //◆◆◆ deleteWordLeft
"command": "deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+delete", //◆◆◆ deleteWordRight
"command": "deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+delete", //◆◆◆ deleteWordRight
"command": "deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+k", //◆◆◆ deleteWordRight
"command": "deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+backspace", //◆◆◆ 删除左侧所有内容
"command": "deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+delete", //◆◆◆ 删除右侧所有内容
"command": "deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+x", //◆◆◆ 删除行
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+u", //◆◆◆ 删除行
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+alt+f", //◆◆◆ editor.action.formatDocument.none 00
"command": "editor.action.formatDocument.none",
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorHasDocumentFormattingProvider && !editorReadonly"
},
{
"key": "shift+alt+f", //◆◆◆ filesExplorer.findInFolder 00
"command": "filesExplorer.findInFolder",
"when": "explorerResourceIsFolder && explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "shift+alt+f", //◆◆◆ 格式化文档
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly"
},
// {
// "key": "shift+tab", //◆◆◆ 外外凹
// "command": "acceptAlternativeSelectedSuggestion",
// "when": "suggestWidgetVisible && textInputFocus && textInputFocus"
// },
// {
// "key": "shift+tab", //◆◆◆ 外外凹
// "command": "insertPrevSuggestion",
// "when": "hasOtherSuggestions && textInputFocus && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'"
// },
// {
// "key": "shift+tab", //◆◆◆ 外外凹
// "command": "jumpToPrevSnippetPlaceholder",
// "when": "editorTextFocus && hasPrevTabstop && inSnippetMode"
// },
{
"key": "shift+tab", //◆◆◆ tab缩进
"command": "outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
// —————————————————————— 切换类 ——————————————————————
{
"key": "cmd+b", //◆◆◆ 视图:切换侧边栏可见性
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "shift+cmd+k shift+cmd+z", //◆◆◆ 视图:切换呈现空格
"command": "editor.action.toggleRenderWhitespace"
},
{
"key": "shift+cmd+k shift+cmd+c", //◆◆◆ 视图:切换活动栏可见性
"command": "workbench.action.toggleActivityBarVisibility"
},
{
"key": "shift+cmd+k shift+cmd+v", //◆◆◆ 视图:切换状态栏可见性
"command": "workbench.action.toggleStatusbarVisibility"
},
{
"key": "shift+cmd+k shift+cmd+b", //◆◆◆ 视图:切换导航路径
"command": "breadcrumbs.toggle"
},
{
"key": "shift+cmd+k shift+cmd+n", //◆◆◆ 视图:切换标签页可见性
"command": "workbench.action.toggleTabsVisibility"
},
{
"key": "shift+cmd+k shift+cmd+m", //◆◆◆ 视图:切换右边小地图
"command": "editor.action.toggleMinimap"
},
// —————————————————————— 外观设置 ——————————————————————
{
"key": "cmd+k cmd+t", //◆◆◆ 首选项:颜色主题
"command": "workbench.action.selectTheme"
},
{
"key": "ctrl+[Backquote]", //◆◆◆ 首选项:颜色主题
"command": "workbench.action.selectTheme"
},
{
"key": "ctrl+`", //◆◆◆ 首选项:颜色主题
"command": "workbench.action.selectTheme"
},
// —————————————————————— 编辑器功能(替换、定位) ——————————————————————
{
"key": "cmd+j", //◆◆◆ 转到行/列
"command": "workbench.action.gotoLine"
},
{
"key": "cmd+g", //◆◆◆ 设置选择定位点
"command": "editor.action.setSelectionAnchor",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+g", //◆◆◆ 转到选择定位点 (标记,标点)
"command": "editor.action.goToSelectionAnchor"
},
{
"key": "alt+g", //◆◆◆ 转到上一编辑位置
"command": "workbench.action.navigateToLastEditLocation"
},
{
"key": "cmd+[BracketLeft]", //◆◆◆ 转到括号
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "cmd+[BracketRight]", //◆◆◆ 转到括号
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "alt+[BracketLeft]", //◆◆◆ 转到括号
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "alt+[BracketRight]", //◆◆◆ 转到括号
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "alt+]", //◆◆◆ 转到括号
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "alt+[", //◆◆◆ 转到括号
"command": "editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+j", //◆◆◆ 合并行
"command": "editor.action.joinLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+up", //◆◆◆ 向上复制行
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+down", //◆◆◆ 向下复制行
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+up", //◆◆◆ 向上移动行
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus",
},
{
"key": "alt+cmd+down", //◆◆◆ 向下移动行
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus",
},
{
"key": "cmd+enter", //◆◆◆ 在上面插入行
"command": "editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+enter", //◆◆◆ 在下面插入行
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
// —————————————————————— 折叠、展开 ——————————————————————
{
"key": "cmd+l cmd+l", //◆◆◆ 切换折叠
"command": "editor.toggleFold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+0", //◆◆◆ 全部折叠
"command": "editor.foldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+9", //◆◆◆ 全部展开
"command": "editor.unfoldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+[BracketLeft]", //◆◆◆ 以递归的方式折叠
"command": "editor.foldRecursively"
},
{
"key": "cmd+l cmd+[BracketRight]", //◆◆◆ 以递归的方式展开
"command": "editor.unfoldRecursively"
},
{
"key": "cmd+l cmd+1", //折叠级别1
"command": "editor.foldLevel1",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+2", //折叠级别2
"command": "editor.foldLevel2",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+3", //折叠级别3
"command": "editor.foldLevel3",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+4", //折叠级别4
"command": "editor.foldLevel4",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+5", //折叠级别5
"command": "editor.foldLevel5",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+6", //折叠级别6
"command": "editor.foldLevel6",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+7", //折叠级别7
"command": "editor.foldLevel7",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+-", //◆◆◆ 折叠除所选区域之外的所有区域
"command": "editor.foldAllExcept",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+l cmd+=", //◆◆◆ 展开除所选区域之外的所有区域
"command": "editor.unfoldAllExcept",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "shift+cmd+[BracketRight]", // ◆◆◆ 展开选择
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+[BracketLeft]", //◆◆◆ 收起选择
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+[", //◆◆◆ 收起选择
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+[BracketRight]", // ◆◆◆ 选择括号的所有内容
"command": "editor.action.selectToBracket"
},
{
"key": "shift+tab", //◆◆◆ 行减少缩进
"command": "editor.action.outdentLines"
},
{
"key": "shift+alt+tab", //◆◆◆ 行缩进
"command": "editor.action.indentLines"
},
{
"key": "shift+tab", //◆◆◆ tab缩进
"command": "outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "cmd+/", //◆◆◆ 切换行注释
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+/", //◆◆◆ 切换块注释
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+l cmd+/", //◆◆◆ 折叠所有块注释
"command": "editor.foldAllBlockComments",
"when": "editorTextFocus && foldingEnabled"
},
// ———————————————————————————————— (git 相关设置) ————————————————————————————————
{
"key": "cmd+p cmd+i", //◇◇◇ Git:初始化存储库
"command": "git.init"
},
{
"key": "cmd+p cmd+c", //◇◇◇ Git:克隆
"command": "git.clone"
},
{
"key": "cmd+p cmd+o", //◇◇◇ Git:打开存储库
"command": "git.openRepository"
},
{
"key": "cmd+p cmd+r", //◇◇◇ Git:刷新
"command": "git.refresh"
},
// {
// "key": "cmd+p cmd+a", //◇◇◇ Git:同步
// "command": "git.sync"
// },
{
"key": "cmd+p cmd+a", //◇◇◇ Git:添加远程存储库
"command": "git.addRemote"
},
{
"key": "shift+alt+cmd+p shift+alt+cmd+d", //◇◇◇ Git:删除远程存储库
"command": "git.removeRemote"
},
// —————————————————————— git 暂存的提交、撤销 有关 ——————————————————————
{
"key": "", //◇◇◇ Git:提交
"command": "git.commit"
},
{
"key": "shift+cmd+p shift+cmd+e", //◇◇◇ Git:创建空提交
"command": "git.commitEmpty"
},
{
"key": "shift+cmd+p shift+cmd+c", //◇◇◇ Git:暂存所有的更改
"command": "git.stageAll"
},
{
"key": "shift+cmd+p shift+cmd+v", //◇◇◇ Git:提交已暂存文件
"command": "git.commitStaged"
},
{
"key": "", //◇◇◇ Git:提交已暂存文件(修改)
"command": "git.commitStagedAmend"
},
{
"key": "", //◇◇◇ Git:提交已暂存文件(已署名)
"command": "git.commitStagedSigned"
},
// {
// "key": "shift+cmd+p shift+cmd+v", //◇◇◇ Git:全部提交
// "command": "git.commitAll"
// },
//
{
"key": "shift+cmd+p shift+cmd+z", //◇◇◇ Git:撤销上次提交
"command": "git.undoCommit"
},
{
"key": "shift+cmd+p shift+cmd+x", //◇◇◇ Git:取消暂存的所有更改
"command": "git.unstageAll"
},
{
"key": "shift+cmd+p shift+cmd+d", //◇◇◇ Git:放弃所有更改
"command": "git.cleanAll"
},
// {
// "key": "", //◇◇◇ Git: 取消暂存更改
// "command": "git.unstage"
// },
// {
// "key": "", //◇◇◇ Git:放弃更改
// "command": "git.clean"
// },
{
"key": "shift+cmd+p shift+cmd+g", //◇◇◇ Git:添加到.gitignore
"command": "git.ignore"
},
//git 储藏有关
{
"key": "cmd+p cmd+s", //◇◇◇ Git:储藏
"command": "git.stash"
},
{
"key": "shift+cmd+p shift+cmd+s", //◇◇◇ Git:应用储藏... 弹出应用贮藏列表窗口,应用后不删除
"command": "git.stashApply"
},
{
"key": "shift+cmd+p s", //◇◇◇ Git:弹出储藏... 弹出应用贮藏列表窗口,应用后删除
"command": "git.stashPop"
},
{
"key": "shift+alt+cmd+p shift+alt+cmd+s", //◇◇◇ Git:删除储藏...
"command": "git.stashDrop"
},
// {
// "key": "shift+cmd+v shift+cmd+p", //◇◇◇ Git:应用最新储藏
// "command": "git.stashApplyLatest"
// },
// —————————————————————— git 拉取 推送 标签 ——————————————————————
{
"key": "cmd+p cmd+p", //◇◇◇ Git:拉取
"command": "git.pull"
},
{
"key": "shift+cmd+p shift+cmd+p", //◇◇◇ Git:推送
"command": "git.push"
},
{
"key": "alt+cmd+p alt+cmd+p", //◇◇◇ Git:推送到...
"command": "git.pushTo"
},
{
"key": "shift+alt+cmd+p shift+alt+cmd+p", //◇◇◇ 推送到...(强制)
"command": "git.pushToForce"
},
{
"key": "", //推送(“关注”标记)
"command": "git.pushWithTags"
},
{
"key": "", //推送(“关注”标记,强制)
"command": "git.pushWithTagsForce"
},
{
"key": "", // 推送(强制)
"command": "git.pushForce"
},
//fetch
{
"key": "", //抓取
"command": "git.fetch"
},
{
"key": "", // 抓取(删除)
"command": "git.fetchPrune"
},
{
"key": "", // 从所有远程存储库中拉取
"command": "git.fetchAll"
},
//变基
{
"key": "", //拉取(变基)
"command": "git.pullRebase"
},
{
"key": "", //同步(变基)
"command": "git.syncRebase"
},
//
{
"key": "", //Git:还原提交模板
"command": "git.restoreCommitTemplate"
},
//标签
{
"key": "shift+cmd+p shift+cmd+t", //◇◇◇ Git:创建git标签
"command": "git.createTag"
},
{
"key": "shift+alt+cmd+p shift+alt+cmd+t", //◇◇◇ Git:删除标签
"command": "git.deleteTag"
},
//分支
{
"key": "shift+cmd+p shift+cmd+b", //◇◇◇ Git:创建分支...
"command": "git.branch"
},
{
"key": "cmd+p cmd+b", //◇◇◇ Git:从现有来源创建新的分支...
"command": "git.branchFrom"
},
{
"key": "cmd+p cmd+l", //◇◇◇ Git:签出到... 切换分支
"command": "git.checkout"
},
{
"key": "cmd+p cmd+m", //◇◇◇ Git:合并分支...
"command": "git.merge"
},
{
"key": "", //发布分支
"command": "git.publish"
},
{
"key": "", //删除分支
"command": "git.deleteBranch"
},
{
"key": "", //重命名分支
"command": "git.renameBranch"
},
// {
// "key": "cmd+p cmd+h", //◇◇◇ git文件历史记录视图
// "command": "git.viewFileHistory"
// },
// {
// "key": "cmd+p cmd+h", //◇◇◇ 显示当前行的Code Lends命令
// "command": "codelens.showLensesInCurrentLine"
// },
// —————————————————————— 扩展或插件型快捷 ——————————————————————
{
"key": "alt+b", //◆◆◆ open In Default Browser
"command": "extension.openInDefaultBrowser"
},
{
"key": "alt+cmd+/", //◆◆◆ document This 文档注释
"command": "docthis.documentThis"
},
//=============================== 移除默认按键 ===============================
//=============================== 移除默认按键 ===============================
//=============================== 移除默认按键 ===============================
{
"key": "cmd+n",
"command": "-workbench.action.files.newUntitledFile"
},
{
"key": "shift+cmd+n",
"command": "-workbench.action.newWindow"
},
{
"key": "ctrl+w",
"command": "-workbench.action.switchWindow"
},
{
"key": "ctrl+cmd+w",
"command": "-workbench.action.toggleTabsVisibility"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFileFolder"
},
{
"key": "cmd+k o",
"command": "-workbench.action.files.showOpenedFileInNewWindow"
},
{
"key": "cmd+k cmd+j",
"command": "-editor.unfoldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+k",
"command": "-workbench.action.openSettingsJson"
},
{
"key": "cmd+k cmd+d",
"command": "-editor.action.moveSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "shift+cmd+s",
"command": "-workbench.action.files.saveLocalFile"
},
{
"key": "shift+cmd+s",
"command": "-workbench.action.files.saveAs"
},
{
"key": "alt+cmd+s",
"command": "-workbench.action.files.saveAll"
},
{
"key": "cmd+s",
"command": "-workbench.action.files.save"
},
{
"key": "cmd+z",
"command": "-editor.action.customEditor.undo",
"when": "focusedCustomEditorIsEditable && !inputFocus"
},
{
"key": "cmd+z",
"command": "-editor.action.webvieweditor.undo",
"when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
},
{
"key": "cmd+z",
"command": "-undo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+z",
"command": "-editor.action.customEditor.redo",
"when": "focusedCustomEditorIsEditable && !inputFocus"
},
{
"key": "shift+cmd+z",
"command": "-editor.action.webvieweditor.redo",
"when": "!editorFocus && !inputFocus && !webviewHasOwnEditFunctions && activeEditor == 'WebviewEditor'"
},
{
"key": "shift+cmd+z",
"command": "-redo",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+x",
"command": "-editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+v",
"command": "-editor.action.clipboardPasteAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+f",
"command": "-actions.find"
},
{
"key": "shift+cmd+f",
"command": "-workbench.action.findInFiles"
},
{
"key": "alt+cmd+f",
"command": "-editor.action.startFindReplaceAction"
},
{
"key": "shift+cmd+h",
"command": "-workbench.action.replaceInFiles"
},
{
"key": "cmd+/",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer"
},
{
"key": "cmd+q",
"command": "-workbench.action.quit"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+q",
"command": "-workbench.action.quickOpenNavigateNextInViewPicker",
"when": "inQuickOpen && inViewsPicker"
},
{
"key": "cmd+k s",
"command": "-workbench.action.files.saveWithoutFormatting"
},
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "shift+cmd+d",
"command": "-workbench.view.debug"
},
{
"key": "alt+backspace",
"command": "-deleteWordLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+delete",
"command": "-deleteWordRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "alt+delete",
"command": "-workbench.action.terminal.deleteWordRight",
"when": "terminalFocus"
},
{
"key": "cmd+backspace",
"command": "-deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+backspace",
"command": "-workbench.action.searchEditor.deleteResultBlock",
"when": "inSearchEditor"
},
{
"key": "cmd+delete",
"command": "-deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+k",
"command": "-deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+j",
"command": "-editor.action.joinLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "cmd+shift+f",
"command": "-workbench.view.search",
"when": "!searchViewletVisible"
},
{
"key": "ctrl+shift+5",
"command": "-workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "alt+cmd+0",
"command": "-workbench.action.toggleEditorGroupLayout"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "shift+cmd+[",
"command": "-workbench.action.previousEditor"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.terminal.focusNextPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+right",
"command": "-markdown-table-formatter.moveColumnRight",
"when": "editorTextFocus"
},
{
"key": "cmd+left",
"command": "-workbench.action.terminal.moveToLineStart",
"when": "terminalFocus"
},
{
"key": "cmd+left",
"command": "-cursorHome",
"when": "textInputFocus"
},
{
"key": "cmd+left",
"command": "-list.collapseAll",
"when": "listFocus && !inputFocus"
},
{
"key": "cmd+right",
"command": "-workbench.action.terminal.moveToLineEnd",
"when": "terminalFocus"
},
{
"key": "cmd+right",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "cmd+k u",
"command": "-workbench.action.closeUnmodifiedEditors"
},
{
"key": "cmd+k w",
"command": "-workbench.action.closeEditorsInGroup"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+alt+f",
"command": "-notebook.format",
"when": "notebookEditable && !editorTextFocus && activeEditor == 'workbench.editor.notebook'"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument.none",
"when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-notebook.formatCell",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && inCompositeEditor && notebookEditable && !editorReadonly && activeEditor == 'workbench.editor.notebook'"
},
{
"key": "shift+alt+f",
"command": "-filesExplorer.findInFolder",
"when": "explorerResourceIsFolder && explorerViewletVisible && filesExplorerFocus && !inputFocus"
},
{
"key": "alt+backspace",
"command": "-workbench.action.terminal.deleteWordLeft",
"when": "terminalFocus"
},
{
"key": "shift+cmd+right",
"command": "-cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+left",
"command": "-cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "alt+f12",
"command": "-editor.action.peekDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+cmd+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "ctrl+r",
"command": "-workbench.action.openRecent"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "f1",
"command": "-workbench.action.showCommands"
},
{
"key": "shift+cmd+p",
"command": "-workbench.action.showCommands"
},
{
"key": "shift+cmd+enter",
"command": "-editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+enter",
"command": "-editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k left",
"command": "-workbench.action.moveActiveEditorGroupLeft"
},
{
"key": "cmd+k right",
"command": "-workbench.action.moveActiveEditorGroupRight"
},
{
"key": "cmd+k up",
"command": "-workbench.action.moveActiveEditorGroupUp"
},
{
"key": "cmd+k down",
"command": "-workbench.action.moveActiveEditorGroupDown"
},
{
"key": "cmd+k cmd+s",
"command": "-workbench.action.openGlobalKeybindings"
},
{
"key": "cmd+k cmd+u",
"command": "-editor.action.removeCommentLine",
},
{
"key": "shift+alt+cmd+left",
"command": "-cursorColumnSelectLeft",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+right",
"command": "-cursorColumnSelectRight",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+up",
"command": "-cursorColumnSelectUp",
"when": "textInputFocus"
},
{
"key": "shift+alt+cmd+down",
"command": "-cursorColumnSelectDown",
"when": "textInputFocus"
},
{
"key": "cmd+e",
"command": "-actions.findWithSelection"
},
{
"key": "shift+cmd+[Backslash]",
"command": "-editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "cmd+shift+\\",
"command": "-editor.action.jumpToBracket",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+q",
"command": "-workbench.action.navigateToLastEditLocation"
},
{
"key": "shift+cmd+g",
"command": "-workbench.view.scm"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "terminalFindFocused || terminalFocus"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "f3",
"command": "-editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+f3",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "cmd+g",
"command": "-editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "f4",
"command": "-search.action.focusNextSearchResult",
"when": "hasSearchResult || inSearchEditor"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "cmd+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+k cmd+0",
"command": "-editor.foldAll",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+up",
"command": "-cursorTopSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+down",
"command": "-cursorBottomSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+up",
"command": "-list.collapseAll",
"when": "listFocus && !inputFocus"
},
{
"key": "shift+cmd+t",
"command": "-workbench.action.reopenClosedEditor"
},
{
"key": "cmd+shift+[Period]",
"command": "-breadcrumbs.focusAndSelect"
},
{
"key": "ctrl+e",
"command": "-cursorLineEnd",
"when": "textInputFocus"
},
{
"key": "ctrl+a",
"command": "-cursorLineStart",
"when": "textInputFocus"
},
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "shift+tab",
"command": "-acceptAlternativeSelectedSuggestion",
"when": "suggestWidgetVisible && textInputFocus && textInputFocus"
},
{
"key": "shift+tab",
"command": "-insertPrevSuggestion",
"when": "hasOtherSuggestions && textInputFocus && textInputFocus && !inSnippetMode && !suggestWidgetVisible && config.editor.tabCompletion == 'on'"
},
{
"key": "shift+tab",
"command": "-jumpToPrevSnippetPlaceholder",
"when": "editorTextFocus && hasPrevTabstop && inSnippetMode"
},
{
"key": "shift+tab",
"command": "-outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "ctrl+space",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "alt+escape",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "cmd+j",
"command": "-workbench.action.togglePanel"
},
{
"key": "alt+b",
"command": "-extension.openInDefaultBrowser"
},
{
"key": "shift+cmd+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "shift+cmd+t",
"command": "-extension.translate",
"when": "editorTextFocus"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm"
},
{
"key": "alt+h",
"command": "-git.viewFileHistory"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+k",
"command": "-workbench.action.terminal.clear",
"when": "terminalFocus"
},
{
"key": "cmd+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{
"key": "shift+f12",
"command": "-editor.action.goToReferences",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "cmd+k cmd+left",
"command": "-workbench.action.focusLeftGroup"
},
{
"key": "cmd+k cmd+right",
"command": "-workbench.action.focusRightGroup"
},
{
"key": "shift+alt+f3",
"command": "-editor.action.dirtydiff.previous",
"when": "editorTextFocus"
},
{
"key": "alt+f3",
"command": "-editor.action.dirtydiff.next",
"when": "editorTextFocus"
},
{
"key": "shift+alt+f12",
"command": "-references-view.find",
"when": "editorHasReferenceProvider"
},
{
"key": "shift+f4",
"command": "-search.action.focusPreviousSearchResult",
"when": "hasSearchResult || inSearchEditor"
},
{
"key": "f4",
"command": "-dart.showTypeHierarchy",
"when": "editorLangId == 'dart'"
},
{
"key": "shift+cmd+f12",
"command": "-editor.action.peekImplementation",
"when": "editorHasImplementationProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "!inDebugMode"
},
{
"key": "shift+alt+f5",
"command": "-workbench.action.editor.previousChange",
"when": "editorTextFocus"
},
{
"key": "alt+f5",
"command": "-workbench.action.editor.nextChange",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+b",
"command": "-editor.action.setSelectionAnchor",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+m",
"command": "-workbench.extensions.action.showRecommendedKeymapExtensions"
},
{
"key": "alt+cmd+c",
"command": "-copyFilePath",
"when": "!editorFocus"
},
{
"key": "shift+cmd+x",
"command": "-workbench.view.extensions"
},
{
"key": "cmd+0",
"command": "-workbench.action.focusSideBar"
},
{
"key": "shift+cmd+m",
"command": "-workbench.actions.view.problems"
},
{
"key": "cmd+k cmd+9",
"command": "-editor.unfoldAllMarkerRegions",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "alt+cmd+r",
"command": "-revealFileInOS",
"when": "!editorFocus"
},
{
"key": "cmd+k shift+cmd+right",
"command": "-workbench.action.moveEditorRightInGroup"
},
{
"key": "cmd+k shift+cmd+left",
"command": "-workbench.action.moveEditorLeftInGroup"
},
{
"key": "cmd+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+q",
"command": "-workbench.action.quickOpenView"
},
{
"key": "alt+f1",
"command": "-editor.action.showAccessibilityHelp",
"when": "editorFocus"
},
{
"key": "cmd+a",
"command": "-editor.action.selectAll",
"when": "textInputFocus"
},
{
"key": "shift+cmd+l",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "cmd+i",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+i",
"command": "-editor.debug.action.showDebugHover",
"when": "editorTextFocus && inDebugMode"
},
{
"key": "cmd+k cmd+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+a",
"command": "-keybindings.editor.addKeybinding",
"when": "inKeybindings && keybindingFocus"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.nextEditor"
},
{
"key": "cmd+r",
"command": "-workbench.action.reloadWindow",
"when": "isDevelopment"
},
{
"key": "alt+cmd+up",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus && terminalProcessSupported"
},
{
"key": "alt+cmd+s",
"command": "-saveAll"
},
{
"key": "shift+up",
"command": "-cursorUpSelect",
"when": "textInputFocus"
},
{
"key": "shift+cmd+1",
"command": "-search.action.replace",
"when": "matchFocus && replaceActive && searchViewletVisible"
},
{
"key": "shift+cmd+1",
"command": "-editor.action.replaceOne",
"when": "editorFocus && findWidgetVisible"
},
{
"key": "shift+cmd+1",
"command": "-search.action.replaceAllInFile",
"when": "fileMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "shift+cmd+1",
"command": "-search.action.replaceAllInFolder",
"when": "folderMatchFocus && replaceActive && searchViewletVisible"
},
{
"key": "alt+f1",
"command": "-editor.action.showAccessibilityHelp"
},
{
"key": "cmd+k cmd+t",
"command": "-workbench.action.selectTheme"
},
{
"key": "cmd+f2",
"command": "-editor.action.changeAll",
"when": "editorTextFocus && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+]",
"command": "-editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+9",
"command": "-workbench.action.lastEditorInGroup"
},
{
"key": "cmd+4",
"command": "-workbench.action.focusFourthEditorGroup"
},
{
"key": "f5",
"command": "-workbench.action.debug.start",
"when": "debuggersAvailable && debugState == 'inactive'"
},
{
"key": "cmd+.",
"command": "-editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k cmd+l",
"command": "-editor.toggleFold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+]",
"command": "-editor.unfoldRecursively",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+[",
"command": "-editor.foldRecursively",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+/",
"command": "-editor.foldAllBlockComments",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+-",
"command": "-editor.foldAllExcept",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "alt+cmd+[",
"command": "-editor.fold",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+1",
"command": "-editor.foldLevel1",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+2",
"command": "-editor.foldLevel2",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+3",
"command": "-editor.foldLevel3",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+4",
"command": "-editor.foldLevel4",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+5",
"command": "-editor.foldLevel5",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+6",
"command": "-editor.foldLevel6",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+7",
"command": "-editor.foldLevel7",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{
"key": "cmd+=",
"command": "-workbench.action.zoomIn"
},
{
"key": "cmd+-",
"command": "-workbench.action.zoomOut"
},
{
"key": "alt+cmd+.",
"command": "-editor.action.autoFix",
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)quickfix\\b/"
},
]
用户设置 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": " "
}
}