vscode 常用快捷键
2018-05-29 19:45
716 查看
本文以 macOS 系统作为示例说明,键位对应关系如下:
Windows
Linux
更多内容,请参考:https://code.visualstudio.com/docs/getstarted/keybindings
本文持续更新:https://github.com/whorusq/vscode-settings
官方完整键位表
macOSWindows
Linux
更多内容,请参考:https://code.visualstudio.com/docs/getstarted/keybindings
本文持续更新:https://github.com/whorusq/vscode-settings
常用快捷键
编辑
command + X 剪切鼠标选择的内容或当前行 command + C 复制鼠标选择的内容或当前行 command + V 粘贴 shift + command + K 删除当前行或选择的内容 command + Enter 在当前行紧邻的下一行插入新行 shift + command + Enter 在当前行紧邻的上一行插入新行 option + ↓ 向下移动当前行或已选择的行 option + ↑ 向上移动当前行或已选择的行 shift + option + ↓ 在下部复制并插入当前行或已选择的行 shift + option + ↑ 在上部复制并插入当前行或已选择的行 command + D 鼠标选择一个单词或语句块,使用此快捷键跳转并选中下一个相同的内容 shift + option + I 在每个已选择行的尾部显示插入光标 shift + command + L 选中与当前已选择内容相同的所有字符 command + I 选中当前行 command + / 添加或移除行注释 shift + option + A 添加或移除块级注释
搜索
command + F 当前文件中查找 command + option + F 当前文件中查找并替换 shift + command + F 全局文件中查找 shift + command + H 全局文件中查找并替换 option + ↓ 切换历史搜索关键字的下一个 option + ↑ 切换历史搜索关键字的上一个
跳转
control + G 跳转到下一个搜索匹配项 command + P 快速定位打开文件 shift + command + O 快速定位到当前文件中指定的标记(函数、变量...),同 `command + P + @` control + shift + Tab 在已打开的文件之间快速切换 shift + command + \ 在一个括号的首尾进行切换 command + ↓ 文件头部 command + ↑ 文件尾部 command + ← 当前行首部 command + → 当前行尾部 control + - 下一个 tab 栏 control + shift + - 上一个 tab 栏 F12 跳转到函数定义的文件,同 alt + 鼠标左键,control + - 返回
文件
command + N 新建文件 command + O 打开文件或文件夹 option + command + T 关闭当前文件以外的其它文件 command + S 保存 option + command + S 保存所有 shift + command + S 另存为 command + K U 关闭已保存的文件 command + K W 关闭所有文件 command + K R 打开系统窗口,定位当前已打开的文件 command + K P 复制当前文件的绝对路径,同 `option + command + C` command + K O 在创建的新窗口显示当前已打开的文件
窗口
shift + command + N 打开新窗口 command + \ 分割编辑器窗口,最多支持 3 个 command + 1 聚焦第一个分割出来的编辑器窗口 command + 2 聚焦第二个分割出来的编辑器窗口 command + 3 聚焦第三个分割出来的编辑器窗口
显示
control + command + F 切换全屏 command + B 显示隐藏侧边栏 shift + command + F 显示侧边搜索栏 control + shift + G 显示侧边版本控制栏 shift + command + D 显示侧边 Debug 栏 shift + command + X 显示侧边扩展栏 shift + command + U 显示、隐藏底部输出面板 control + Q 在不同面板间快速切换 control + ` 显示、隐藏底部 terminal 面板
Debug
F9 添加或移除断点 F5 开始调试 F5 继续 F6 暂停 F11 步入 shift + F11 步出 F10 跳过 shift + F5 停止调试
相关文章推荐
- VsCode 常用快捷键、debug菜单、debug插件
- vscode: Visual Studio Code 常用快捷键
- VS Code前端开发利器-常用快捷键
- vscode: Visual Studio Code 常用快捷键
- VS Code 的常用快捷键
- Visual Studio Code 常用快捷键 VS Code快捷键
- VS Code 的常用快捷键和插件
- Mac上的VSCode学习--常用快捷键
- vscode: Visual Studio Code 常用快捷键
- vscode 常用快捷键
- vscode: Visual Studio Code 常用快捷键(二)
- VSCode 常用快捷键与插件
- vscode: Visual Studio Code 常用快捷键(二)
- vscode: Visual Studio Code 常用快捷键
- VS Code - 常用快捷键
- vscode常用快捷键及常用设置(转)
- VS常用快捷键
- VS Code折腾记 - (4) 常用必备插件推荐【前端】
- VS2010版常用快捷键
- VS2013常用快捷键