当前位置:网站首页>35 快速格式化代码
35 快速格式化代码
2022-07-25 14:41:00 【hello_sunny123】
VScode 保存代码时自动格式化代码
(1)安装插件 vetur
(2)文件-----首选项-----设置;
(3)工作区-----文本编辑器-----正在格式化-----Format On Save(勾选);
测试代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>快速格式化代码</title>
<style> body{
width:100px; height:200px; } </style>
</head>
<body>
<div>123</div>
<div>abc</div>
</body>
</html>
保存:Ctrl+s;后立马自动保存并且对齐
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>快速格式化代码</title>
<style> body {
width: 100px; height: 200px; } </style>
</head>
<body>
<div>123</div>
<div>abc</div>
</body>
</html>
边栏推荐
- [Nuxt 3] (十一) 传送 & 模块
- Sqli labs installation environment: ubuntu18 php7
- MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
- QObject source code analysis -d pointer and Q pointer
- Software testing -- 1. Outline of software testing knowledge
- D2. picking carrots (hard version) (one question per day)
- The input input box of H5 page pops up the numeric keypad, which needs to support decimal points
- Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
- 疫情之下,生物医药行业或将迎来突破性发展
- Go language founder leaves Google
猜你喜欢

How to design a high concurrency system?

English grammar_ Indefinite pronoun - other / other

PS making and loading GIF pictures tutorial

Ssh server rejected password

Why do China Construction and China Railway need this certificate? What is the reason?

Niuke multi school E G J L

06、类神经网络
![优质数对的数目[位运算特点+抽象能力考察+分组快速统计]](/img/c9/8f8f0934111f7ae8f8abd656d92f12.png)
优质数对的数目[位运算特点+抽象能力考察+分组快速统计]

I hope some suggestions on SQL optimization can help you who are tortured by SQL like me

Resource not found: rgbd_launch 解决方案
随机推荐
基于浏览器的分屏阅读
关于ROS2安装connext RMW的进度条卡在13%问题的解决办法
51单片机学习笔记(1)
PS making and loading GIF pictures tutorial
快速搭建Dobbo小Demo
二维数组赋初值你会几种方法?
gson与fastjson
Opencv video tracking "suggestions collection"
关于RDBMS和非RDBMS【数据库系统】
06. Neural network like
Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount
MySQL的登陆【数据库系统】
Huawei ENSP router static route (the next hop address of the default route)
Under the epidemic, the biomedical industry may usher in breakthrough development
SSH服务器拒绝了密码
51 single chip microcomputer learning notes (2)
English grammar_ Indefinite pronoun - other / other
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
用GaussDB(for Redis)存画像,推荐业务轻松降本60%
The concept and operation rules of calculus of variations