Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
T treasure
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FE
  • treasure
  • Issues
  • #65

Closed
Open
Created Feb 15, 2022 by xingkai@kevin

vscode 快捷键

常用

搜索: command + F

全局搜索: command + Shift + F

删除光标所在的一行: command + X

删除光标所在行的下一行: control + D

打开命令面板: command + Shift + P

显示 Errors或 Warnings: command + Shift + M

跳转到 symbol(搜索变量或者函数): command + Shift + O

根据分类跳转 symbol,查找属性或函数,也可以 command+Shift+O 后输入" : "进入: command + Shift + O + :

根据名字查找 symbol: command + T

多行编辑(列编辑): commond+option+Down/Up

跳往自定的行数: control + G

编辑器与窗口管理

新建文件: command + N

文件之间切换: control + Tab

打开一个新的VS Code编辑器: command + Shift + N

关闭当前窗口: command + W

关闭当前的VS Code编辑器: command+Shift+W

切出一个新的编辑器窗口: command + \

切换左中右3个编辑器窗口的快捷键: control + 1 control + 2 control + 3

格式调整

代码行向左或向右缩进: command+[ 、 command+]

复制或剪切当前行/当前选中内容: command+C 、 command+V

代码格式化: Shift + option + F

向上或向下移动一行: option + Up 或 option + Down

向上或向下复制一行: Shift + option + Up 或 Shift + option + Down

在当前行下方插入一行: commond + Enter

在当前行上方插入一行: commond + Shift + Enter

光标相关

删除光标左侧的所有内容(当前行): commond+Delete

扩展/缩小选取范围: Shift+option+Right 和 Shift+option+Left

多行编辑(列编辑): commond+option+Down/Up

下一个匹配的也被选中: commond+D

回退上一个光标操作: commond+U

撤销上一步操作: commond+Z

恢复上一步操作: commond+Z

手动保存: commond+S

查找替换

查找: commond+F

查找替换: commond+H

显示相关

放大或缩小(以编辑器左上角为基准): commond +/-

侧边栏显示或隐藏: commond+B

显示资源管理器(光标切到侧边栏中才有效): commond+Shift+E

显示搜索(光标切到侧边栏中才有效): commond+Shift+F

显示搜索框: commond+Shift+G

显示 Debug: commond+Shift+D

显示 Output: commond+Shift+U

打开快捷键设置

commond+Shift+P P+K+Enter

官方快捷键大全

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking