「VSCode」部分快捷功能及对应的命令 ID

2022-03-28 15:49:22 +08:00
 wdssmq

VSCode 多光标编辑: https://www.v2ex.com/t/843239 ← 算是这个贴子的补充,单独发一下;

我自己有份快捷键列表,附带了某个效果对应哪个内部命令,正好补充了一下;

很多键是我自己改过的,有一部分甚至没有默认绑定键,根据命令项查看实际绑定键或自定义;


博客内表格排版很不好,,建议直接 GitHub 查看;

Markdown-To-Z-Blog/2013-05-25-VSCode-Hot-Key at main · wdssmq/Markdown-To-Z-Blog

https://github.com/wdssmq/Markdown-To-Z-Blog/blob/main/_posts/2013-05-25-VSCode-Hot-Key.md

「 VSCode 」快捷键备忘_电脑网络_沉冰浮水

https://www.wdssmq.com/post/20130525410.html


快捷键 操作 命令
ctrl + b 切换侧栏显隐 workbench.action.toggleSidebarVisibility
ctrl + d 复制当前行(向下) editor.action.copyLinesDownAction
ctrl + e 展开 emmet 缩写 editor.emmet.action.expandAbbreviation
ctrl + q 切换注释 editor.action.commentLine
ctrl + l 选中当前行 expandLineSelection
ctrl + shift + ↑ 选中文本 - 向上一行 cursorUpSelect
ctrl + shift + ↓ 选中文本 - 向下一行 cursorDownSelect
ctrl + ← 光标移动 - 单词左侧为界 cursorWordLeft
ctrl + shift + ← 选中文本 - 同上 cursorWordLeftSelect
光标移动 - 词首或驼峰 cursorWordPartLeft
选中文本 - 同上 cursorWordPartLeftSelect
ctrl + → 光标移动 - 单词右侧为界 cursorWordEndRight
ctrl + shift + → 选中文本 - 同上 cursorWordEndRightSelect
光标移动 - 词尾或驼峰 cursorWordPartRight
选中文本 - 同上 cursorWordPartRightSelect
shift + alt + ← 收起选择 editor.action.smartSelect.shrink
shift + alt + → 展开选择 editor.action.smartSelect.expand
ctrl + p 最近打开过的单文件 workbench.action.quickOpen
ctrl + r 最近打过的工作区或文件夹 workbench.action.openRecent
ctrl + shift + o 转到编辑器中的符号 workbench.action.gotoSymbol
ctrl + alt + b 格式化代码 /文档 editor.action.formatDocument
ctrl + alt + ↑ 同一列的上一行添加光标 editor.action.insertCursorAbove
ctrl + alt + ↓ 同一列的下一行添加光标 editor.action.insertCursorBelow
ctrl + shift + p 命令面板 workbench.action.showCommands
ctrl + shift + x 扩展 /插件 查看 workbench.view.extensions
ctrl + shift + g 源代码管理( Git ) workbench.view.scm
ctrl + shfit + e 工作区 /文件夹查看 workbench.view.explorer
ctrl + shift + k 删除当前行 感觉 ctrl + l ,然后 del 会更安全?
ctrl + shift + l 将全部查找匹配项添加到选择 addCursorsAtSearchResults
alt + d 将下一个查找匹配项添加到选择 editor.action.addSelectionToNextFindMatch
alt + ↑ 向上移动行 editor.action.moveLinesUpAction
alt + ↓ 向上移动行 editor.action.moveLinesDownAction
ctrl + k z 禅模式 workbench.action.toggleZenMode
ctrl + k m 语言模式 workbench.action.editor.changeLanguageMode
ctrl + k k 快捷方式设置 workbench.action.openGlobalKeybindings
ctrl + k u 关闭已经保存的编辑器页 workbench.action.closeUnmodifiedEditors
ctrl + k o 在新窗口打开活动文件 workbench.action.files.showOpenedFileInNewWindow
ctrl + k ctrl + l 转为小写 editor.action.transformToLowercase
ctrl + k ctrl + u 转为大写 editor.action.transformToUppercase
1698 次点击
所在节点    Visual Studio Code
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/843408

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX