当前位置:网站首页>VSCode 快捷键
VSCode 快捷键
2022-06-28 12:55:00 【HHppGo】
VsCode可以通过以下快捷键 格式化代码:
On Windows Shift + Alt + F ( 巨好用!有木有!QAQ)
On Mac Shift + Option + F
1、向上/向下移动代码行
alt+ 下箭头/上箭头
2、向上/向下复制一行代码
shift+alt+ 下箭头/上箭头
3、选定多个相同的单词
ctrl + d
4、全局替换
ctrl + h
5、快速定位到某一行
ctrl + g
6、放大缩小整个编辑器界面
ctrl + + / -
7、添加多个光标
Ctrl + Alt + 上箭头/下箭头
Ctrl + 按住鼠标中键 + 向上或向下拖动
第一次点击时不按 Ctrl + Alt ,第二次点击时按住Ctrl +Alt
8、选择某个区块
按住alt + shift 然后拖动鼠标
9、选中行
按住alt + shift + 左箭头/ 右箭头
10、光标定位到单词首/单词尾
Ctrl + 左箭头/ 右箭头
11、选中单词
Ctrl + shift + 左箭头/ 右箭头
12、光标定位到行首/行未
Home/End
13、重命名变量
很多时候时候,我们都会随便给变量命名,随后再去修改变量的习惯,所以给变量重命名我们会经常遇到,在vscode中,选择一个变量,按住F2键,填写一个新名称然后按enter键,所有相同名称的变量都会同时修改。
选中变量 f2
14、跳转到错误和警告处
一个比较有趣的快捷键是,我们可以通过Ctrl + Shift + M打开错误tab页,然后我们可以跳转到报错的地方并修复它们,这是一个一旦使用过就无法离开的快捷键。
Ctrl + Shift + M
15、折叠鼠标所在区域
Shift + Ctrl + [
16、展开鼠标所在区域
Shift + Ctrl + ]
17、 折叠当前页的所有可折叠区域
ctrl + 0
18、增加缩进
Ctrl + [
19、减少缩进
Ctrl + ]
原文出处:https://blog.csdn.net/weixin_45022563/article/details/124497299
边栏推荐
- [today in history] June 28: musk was born; Microsoft launches office 365; The inventor of Chua's circuit was born
- 命名空间和作用域
- Watermaker of the Flink core
- Matplotlib_Study01
- 10万美元AI竞赛:寻找大模型做得“更烂”的任务
- MySQ 8.0 推出直方图,性能大大提升!
- 小白创业做电商,选对商城系统很重要!
- After failing in the college entrance examination, he entered Harbin Institute of technology, but stayed in the university after graduation to be an "Explorer". Ding Xiao: scientific research is accum
- Performance test-01-introduction
- pytorch基础
猜你喜欢

Evaluation of IP location query interface I

中二青年付杰的逆袭故事:从二本生到 ICLR 杰出论文奖,我用了20年

flutter 系列之:flutter 中常用的 GridView layout 详解

词云的可视化设计教程

4年用户数破亿,孙哥带领波场再创新高

From jsonpath and XPath to spl

newest! Introduction and practical tutorial of point cloud processing based on open3d

在线JSON转PlainText工具

Understand leveldb write operation

ASP.NET CORE Study04
随机推荐
UDP RTP packet frame loss
VS2012 VC新建一个空白窗口应用
Namespace and scope
命名空间和作用域
ASP.NET CORE Study04
Go language learning notes - Gorm usage - database configuration, table addition | web framework gin (VII)
嵌入式开发:估算电池寿命的7个技巧
ASP. NET CORE Study03
FineReport安装教程
同花顺上怎么进行开户啊, 安全吗
Hundreds of lines of code to implement a JSON parser
From jsonpath and XPath to spl
Unity Editor Extension Foundation, GUI
Wi-Fi 7 来啦,它到底有多强?
如何在Microsoft Exchange 2010中安装SSL证书
IPETRONIK数据采集设备携手Softing Q-Vision软件致力于ADAS测试方案
Why does CAD export PDF have no color
微服务稳定性保障
数字孪生能源系统,打造低碳时代“透视”眼
SHAREit實力出眾,登陸全球 IAP 實力榜 Top7