V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wdssmq
V2EX  ›  Visual Studio Code

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

  •  
  •   wdssmq ·
    wdssmq · 2022-03-28 15:49:22 +08:00 · 1647 次点击
    这是一个创建于 768 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2351 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:49 · PVG 10:49 · LAX 19:49 · JFK 22:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.