当前位置:网站首页>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>
边栏推荐
- The supply chain collaborative management system, a new "engine" of digitalization in machinery manufacturing industry, helps enterprises' refined management to a new level
- Awk from entry to earth (24) extract the IP of the instruction network card
- [cartographer_ros] VIII: Official demo parameter configuration and effect
- Thymeleaf controls whether display is displayed through style
- IP地址分类,判断一个网段是子网超网
- Several methods of spark parameter configuration
- 网络安全应急响应技术实战指南(奇安信)
- Bond0 script
- Awk from getting started to digging in (21) awk script debugging
- Gameframework making games (II) making UI interface
猜你喜欢

基于AMD EPYC服务器的EDA芯片设计解决方案

【MySQL必知必会】触发器 | 权限管理

基于PaddleOCR开发uni-app离线身份证识别插件

006操作符简介

Resource not found: rgbd_launch 解决方案

The main function of component procurement system, digital procurement helps component enterprises develop rapidly

sqli-labs Basic Challenges Less1-10

L1和L2正则化

Development of uni app offline ID card identification plug-in based on paddleocr

I hope some suggestions on SQL optimization can help you who are tortured by SQL like me
随机推荐
QObject源码剖析-d指针和q指针
Resource not found: rgbd_ Launch solution
牛客多校 E G J L
Paddlenlp's UIE relationship extraction model [executive relationship extraction as an example]
Ten common application scenarios of redis
Structure size
MySQL 45 talks about | 06 global locks and table locks: Why are there so many obstacles to adding a field to a table?
Browser based split screen reading
各种平台dpkg包下载地址(包括arm64)
Dpkg package download addresses of various platforms (including arm64)
CTS test introduction (how to introduce interface test in interview)
IP地址分类,判断一个网段是子网超网
Software testing -- 1. Outline of software testing knowledge
Filters get the data in data; Filters use data in data
H5页面input输入框弹起数字键盘,需要支持小数点
GameFramework制作游戏(二)制作UI界面
PS making and loading GIF pictures tutorial
Application practice: Great integrator of the paddy classification model [paddlehub, finetune, prompt]
51 single chip microcomputer learning notes (2)
Melodic + Realsense D435i 配置及错误问题解决