Mac上的VSCode学习--常用快捷键

vscode 终端

快捷键事件
control + 反引号(键盘左上)调出终端or隐藏终端
control + shift + 反引号(键盘左上)新建集成终端
control + A回到行首
option + left/right以单词为单位移动
command + left/right回到行首或行尾
command + F搜索框
command + K清除输出结果

vscode 代码区

快捷键事件
option + left/right一单词为单位移动
command + left/right回到行首或行尾
command + top/bottom回到首行或者末行
command + shift + \在花括号{}之间移动
option + shift + left/right选中当前单词开头/结尾到光标之间的所有字符
command + shift + left/right选中当前行开头/结尾到光标之间的所有字符
command + shift + top/bottom选中首行/末行到光标之间的所有字符
command + shift + P打开命令面板
command + delete删除当前行光标左侧所有内容
command + delete + fn删除当前行光标右侧所有内容
option + delete删除当前光标前的单词
option + delete + fn删除当前光标后的单词
command + shift + K删除当前行代码
command + X剪切当前行代码
command + shift + enter在当前行的上面开始一行
option + top/bottom上下行代码交换位置
option + shift + top/bottom复制当前行或者已选中行到当前行下边
option + shift + F格式化代码
command + K command + F选中的代码格式化
control + T光标左右字符调换位置
control + J两行合并成一行
command + U撤销一次光标的移动
option + B.html文件在浏览器中打开(需要安装open in browser插件)

自定义快捷键

方法:打开命令面板(command + shift + p),搜索‘打开键盘快捷方式(open Keyboard Shortcuts)’,
搜索想要绑定的事件,输入你想用的快捷键后,按下enter即可。(注意不要与已有快捷键发生冲突)

快捷键事件
command + shift + ]选中括号内所有内容
command + shift + i选中行进行缩进
control + u选中部分大写
control + l选中部分小写

转载于:https://www.cnblogs.com/lmx093418/p/9961235.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值