vscode快捷键

612 阅读1分钟

说明

如果是window系统,将command代替成ctrl键

快速跳转方法

command + shift + o

搜索快捷键

command + shift + f

查询引用

跳转到声明

方案一:command+鼠标左键

方案二:F12

从“跳转到声明”到原来的位置

control + -

再回到原来的位置

control + shift + -

快速删除块代码

光标放在括号上,然后按 control + shift + command + ->

定位当前文件

command + shift + e

outline-查看文件结构

control + shift + o

Code > Preferences > Keyboard Shortcuts
{
    "key": "ctrl+shift+o",
    "command": "outline.focus"
}

outline折叠快捷键

Code > Preferences > Keyboard Shortcuts
{
    "key": "ctrl+shift+c",
    "command": "outline.collapse"
}

显示当前文件的修改内容

command + shift + q

Code > Preferences > Keyboard Shortcuts
{
    "key": "ctrl+shift+q",
    "command": "git.openChange"
}

显示所有未提交的记录

control + shift + g

打开控制台

control + `