【❤强哥推荐❣】VSCode常用快捷键配置文件表、代码片段,记得收藏

简介: 【❤强哥推荐❣】VSCode常用快捷键配置文件表、代码片段,记得收藏

直接修改C:\Users\Administrator\AppData\Roaming\Code\User\keybindings.json(注意目录根据自己的用户名情况和安装位置而定,我的仅供参考)文件为如下配置:

// 将键绑定放在此文件中以覆盖默认值auto[]
[
    {
        "key": "ctrl+shift+j",
        "command": "editor.action.joinLines"
    },
    {
        "key": "shift+alt+x",
        "command": "workbench.files.action.collapseExplorerFolders"
    },
    {
        "key": "alt+s",
        "command": "workbench.action.toggleAutoSave"
    },
    {
        "key": "shift+alt+w",
        "command": "workbench.action.closeOtherEditors"
    },
    {
        "key": "shift+alt+oem_6",
        "command": "workbench.action.closeEditorsToTheRight"
    },
    {
        "key": "shift+alt+oem_4",
        "command": "workbench.action.closeEditorsToTheLeft"
    },
    {
        "key": "ctrl+shift+pagedown",
        "command": "-workbench.action.moveEditorRightInGroup"
    },
    {
        "key": "ctrl+shift+pagedown",
        "command": "workbench.action.moveEditorRightInGroup"
    },
    {
        "key": "ctrl+numpad0",
        "command": "editor.action.fontZoomReset"
    },
    {
        "key": "alt+e",
        "command": "workbench.action.switchWindow"
    },
    {
        "key": "alt+insert",
        "command": "explorer.newFile"
    },
    {
        "key": "shift+alt+insert",
        "command": "explorer.newFolder"
    },
    {
        "key": "alt+enter",
        "command": "editor.action.quickFix",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+oem_period",
        "command": "-editor.action.quickFix",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+shift+oem_3",
        "command": "-workbench.action.terminal.new",
        "when": "terminalProcessSupported"
    },
    {
        "key": "shift+alt+z",
        "command": "workbench.action.terminal.newInActiveWorkspace"
    },
    {
        "key": "ctrl+l",
        "command": "workbench.action.terminal.clear"
    },
    {
        "key": "ctrl+alt+k",
        "command": "workbench.action.openGlobalKeybindings"
    },
    {
        "key": "ctrl+shift+f",
        "command": "-vueBeautify.format",
        "when": "editorTextFocus && editorTextFocus && !editorReadonly && resourceLangId == 'vue'"
    },
    {
        "key": "alt+m",
        "command": "editor.action.toggleMinimap"
    },
    {
        "key": "alt+n",
        "command": "npm.focus"
    },
    {
        "key": "shift shift",
        "command": "workbench.action.gotoSymbol"
    },
    {
        "key": "ctrl+shift+o",
        "command": "-workbench.action.gotoSymbol"
    },
    {
        "key": "shift+alt+l",
        "command": "editor.action.transformToLowercase"
    },
    {
        "key": "shift+alt+u",
        "command": "editor.action.transformToUppercase"
    },
    {
        "key": "alt+u",
        "command": "editor.action.transformToTitlecase"
    },
    {
        "key": "alt+numpad_add",
        "command": "workbench.action.increaseViewSize"
    },
    {
        "key": "alt+pagedown",
        "command": "workbench.action.terminal.resizePaneDown"
    },
    {
        "key": "alt+numpad_subtract",
        "command": "workbench.action.decreaseViewSize"
    },
    {
        "key": "alt+numpad0",
        "command": "workbench.action.evenEditorWidths"
    },
    {
        "key": "alt+pageup",
        "command": "workbench.action.terminal.resizePaneUp"
    },
    {
        "key": "ctrl+alt+s",
        "command": "extension.autoScssStruct"
    },
    {
        "key": "alt+b",
        "command": "workbench.action.toggleStatusbarVisibility"
    },
    {
        "key": "shift+alt+k",
        "command": "workbench.action.openGlobalKeybindingsFile"
    },
    {
        "key": "alt+f",
        "command": "workbench.action.toggleZenMode"
    },
    {
        "key": "alt+q",
        "command": "workbench.action.toggleActivityBarVisibility"
    },
    {
        "key": "alt+oem_5",
        "command": "workbench.action.splitEditorDown"
    },
    {
        "key": "alt+g",
        "command": "git.checkout"
    },
    {
        "key": "ctrl+alt+r",
        "command": "workbench.files.action.refreshFilesExplorer"
    },
    {
        "key": "alt+r",
        "command": "workbench.action.tasks.runTask"
    },
    {
        "key": "alt+c",
        "command": "-extension.switchCSS"
    },
    {
        "key": "alt+c",
        "command": "extension.switchCSS"
    },
    {
        "key": "alt+x",
        "command": "extension.cssrem.rem-switch-px"
    },
]

也可以用新的打开快捷方式JSON配置文件的快捷键Ctrl+Alt+K进行编辑配置

或直接用Shift+Alt+K进行编辑配置

传送门设置VSCode打开键盘快捷方式和键盘快捷方式配置JSON分别快捷键为:Ctrl+Alt+K和Shift+Alt+K_你挚爱的强哥(http://www.shuzhiqiang.com)-CSDN博客


相关文章
|
8月前
vscode 向下复制当前行功能快捷键 设置成Ctrl + D
vscode 向下复制当前行功能快捷键 设置成Ctrl + D
463 0
|
8月前
设置VSCode运行任务命令快捷键Alt+R,通常用于npm start(对频繁使用该命令可节省50%的输入命令行打字时间)
设置VSCode运行任务命令快捷键Alt+R,通常用于npm start(对频繁使用该命令可节省50%的输入命令行打字时间)
|
8月前
设置VSCode代码编辑器右侧的Minimap代码缩略图滚动条切换显示、隐藏的快捷键Alt+M
设置VSCode代码编辑器右侧的Minimap代码缩略图滚动条切换显示、隐藏的快捷键Alt+M
|
2月前
|
Linux C++ iOS开发
vs code常见的查找快捷键大全
本文来自 frozencola 技术日志,介绍了 VS Code 中常用的查找快捷键,包括快速打开文件、文件资源管理器、全局搜索、查找符号、查找文件中的文本、查找并替换、文件导航和使用命令面板。掌握这些快捷键可以显著提升开发效率。
197 4
|
2月前
|
C++
vs code常见的查找快捷键大全
【11月更文挑战第1天】本文介绍了 VS Code 中的基本查找和替换操作,包括在当前文件中查找(Ctrl + F)、查找替换(Ctrl + H)、查找下一个(F3)和查找上一个(Shift + F3)。还涵盖了在多个文件中查找(Ctrl + Shift + F)和查找替换(Ctrl + Shift + H),以及符号查找相关操作,如转到符号(Ctrl + T)和在文件中查找符号(Ctrl + Shift + O)。这些快捷键和功能帮助用户高效地管理和编辑代码。
301 2
|
7月前
|
C++ iOS开发 MacOS
常用的 VSCode 快捷键【大全】,提升你的编码速度
常用的 VSCode 快捷键【大全】,提升你的编码速度
常用的 VSCode 快捷键【大全】,提升你的编码速度
|
8月前
个人建议:VSCode和WebStorm中的“关闭其他所有编辑器、关闭左侧编辑器、关闭右侧编辑器”快捷键这么设置shift+alt+w、shift+alt+[、shift+alt+],你会受益匪浅
个人建议:VSCode和WebStorm中的“关闭其他所有编辑器、关闭左侧编辑器、关闭右侧编辑器”快捷键这么设置shift+alt+w、shift+alt+[、shift+alt+],你会受益匪浅
|
8月前
|
搜索推荐 开发者
VSCode快捷键使用教程:提高编码效率的利器
本文介绍了提升编程效率的VSCode快捷键使用方法。主要包括编辑、导航、查找与替换、格式化等快捷键,如Ctrl+A全选,Ctrl+P前往文件,Ctrl+F查找,Shift+Alt+F格式化代码。此外,还涉及窗口和菜单快捷键,如新建窗口(Ctrl+Shift+N)、切换分屏(Ctrl+左右箭头)。VSCode也支持用户自定义快捷键,通过Ctrl+,打开设置进行个性化配置。
1134 0
|
8月前
|
JSON JavaScript 前端开发
【vscode】 VsCode 代码片段
【vscode】 VsCode 代码片段
67 0
|
8月前
|
Go 开发工具
编程笔记 GOLANG基础 004 GOLANG常用命令及VSCODE快捷键
编程笔记 GOLANG基础 004 GOLANG常用命令及VSCODE快捷键
134 2

热门文章

最新文章