vscode快捷键设置

记录设置的常用快捷键

  • navigateup/navigatedown/navigateright/navigateleft -> alt + up/down/right/left,用于在分屏中切换
  • terminal: focus next/previous terminal in terminal group -> alt + right/left ,用于在多个termnial间切换
  • toggle terminal -> ctrl + t ,用于从editor切换到terminal
  • go to next/previous symbol highlight -> =/- ,用于跳转到下一次/前一次该符号出现的位置
  • go to next/previous preprocessor directive in conditional group -> ctrl + [/] ,用于跳转到下一个或者上一个配对的条件编译指令
  • go to bracket -> ctrl + \ ,用于跳转到配对括号
  • go back/forward -> ctrl + o/u,用于返回光标的上一位置或向前
  • split editor right -> ctrl + r ,用于将该文件分屏到右边
  • split editor into right group -> ctrl + r ,用于将该文件分配到右边的屏幕组里
  • open next/previous editor in group -> shift + right/left ,用于左右切换打开的文件
  • increase/decrease editor width -> ctrl + =/- ,用于调整分屏的编辑器宽度
  • Markdown: Open Preview to the Side -> ctrl + shift + k
  • Markdown: Open Preview -> ctrl + shift + v

其它

  • 有时候不希望一部分代码被格式化,安装的c/c++插件的格式化工具使用的clang-format,可以这样做
// clang-format off
parts of code which will not be formatted....
// clang-format on 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值