当前位置:网站首页>教你VSCode如何快速对齐代码、格式化代码
教你VSCode如何快速对齐代码、格式化代码
2022-08-01 21:33:00 【森明帮大于黑虎帮】
以前经常用VS2013或者VS2017还有VS2019代码工具,对其代码时ctrl+k+d来对齐代码,而现在操作VSCode来对齐代码的时候这个快捷键没用了,因为VSCode有自己的快捷键,如下代码所示:
刚使用VSCode发现代码容易写着容易乱,以前经常用VS2013或者VS2017还有VS2019代码工具,对其代码时ctrl+k+d来对齐代码,VSCode自带也有快捷键,需要先选中需要格式化的代码,然后使用组合键shift + alt +f 进行格式化。
这里你会好奇为啥没有用。因为缺少了一个插件,所以我们这里还要下一个插件。
下载这个插件就可以实现代码对齐了。然后使用组合键shift + alt +f 进行格式化。
边栏推荐
- Graph adjacency matrix storage
- 作业8.1 孤儿进程与僵尸进程
- Spark shuffle调优
- File operations of WEB penetration
- ImportError: `save_weights` requires h5py.问题解决
- 牛血清白蛋白-葡聚糖-叶黄素纳米颗粒/半乳糖白蛋白磁性阿霉素纳米粒的制备
- Upload markdown documents to blog garden
- Transplant MQTT source code to STM32F407 development board
- 0DFS中等 LeetCode6134. 找到离给定两个节点最近的节点
- 19 Lectures on Disassembly of Multi-merchant Mall System Functions - Invoice Management on the Platform
猜你喜欢
随机推荐
测试开发人均年薪30w+?软件测试工程师如何进阶拿到高薪?
包含吲哚菁绿的多聚体白蛋白纳米球/载马钱子碱纳米粒的牛血清白蛋白微球的制备
0DFS Medium LeetCode6134. Find the closest node to the given two nodes
Homework 8.1 Orphans and Zombies
Scala练习题+答案
[@synthesize in Objective-C]
关于npm的那些事儿
小程序--分包
牛血清白蛋白刺槐豆胶壳聚糖缓释纳米微球/多西紫杉醇的纳米微球DTX-DHA-BSA-NPs
C pitfalls and pitfalls Chapter 8 Suggestions and answers 8.2 Answers
Based on php hotel online reservation management system acquisition (php graduation project)
AI应用第一课:支付宝刷脸登录
牛血清白蛋白-葡聚糖-叶黄素纳米颗粒/半乳糖白蛋白磁性阿霉素纳米粒的制备
PX4模块设计之十五:PX4 Log设计
方舟生存进化是什么游戏?好不好玩
NFT的10种实际用途(NFT系统开发)
How to choose Visibility, Display, and Opacity when interacting or animating
用户量大,Redis没法缓存响应,数据库宕机?如何排查解决?
基于php影视资讯网站管理系统获取(php毕业设计)
C Expert Programming Preface









