当前位置:网站首页>The vscode code is automatically modified to a compliance code when it is formatted and saved
The vscode code is automatically modified to a compliance code when it is formatted and saved
2022-07-03 18:01:00 【Ango can't move】
Install these three components
windwos
ctrl+, Open the settings and click here in the upper right corner
Paste and save the following content
{
// tab The size is 2 A space
"editor.tabSize": 2,
// 100 Line feed after column
"editor.wordWrapColumn": 100,
// Format on save
"editor.formatOnSave": true,
// Turn on vscode File path navigation
"breadcrumbs.enabled": true,
// prettier Set the end of the statement without a semicolon
"prettier.semi": false,
// prettier Set mandatory single quotation marks
"prettier.singleQuote": true,
// choice vue In file template Format tool for
"vetur.format.defaultFormatter.html": "prettyhtml",
// Show markdown Special characters generated when switching between Chinese and English
"editor.renderControlCharacters": true,
// Set up eslint Auto repair on save
"eslint.autoFixOnSave": true,
// eslint Test file type
"eslint.validate": [
"vue",
"html",
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
],
// vetur Custom settings for
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true,
"semi": false
}
},
// vue The extended file defaults to prettier format
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
The previous code looked like this
direct ctrl+s Save it
The code changes like this . Very fashionable
边栏推荐
- Introduction to PHP MySQL
- PUT vs. POST for Uploading Files - RESTful API to be Built Using Zend Framework
- Count the number of pixel values in the image
- Codeforces Round #803 (Div. 2) C. 3SUM Closure
- Postfix tips and troubleshooting commands
- Analyse ArrayList 3: suppression d'éléments
- Should I be laid off at the age of 40? IBM is suspected of age discrimination, calling its old employees "dinosaurs" and planning to dismiss, but the employees can't refute it
- 基于人脸识别的课堂考勤系统 tkinter+openpyxl+face_recognition
- [combinatorics] recursive equation (the non-homogeneous part is an exponential function and the bottom is the characteristic root | example of finding a special solution)
- Line by line explanation of yolox source code of anchor free series network (5) -- mosaic data enhancement and mathematical understanding
猜你喜欢
win32:堆破坏的dump文件分析
As soon as we enter "remote", we will never regret, and several people will be happy and several people will be sad| Community essay solicitation
[combinatorics] recursive equation (summary of the solution process of recursive equation | homogeneous | double root | non-homogeneous | characteristic root is 1 | exponential form | the bottom is th
How to install PHP on Ubuntu 20.04
一入“远程”终不悔,几人欢喜几人愁。| 社区征文
Win32: dump file analysis of heap corruption
Global and Chinese health care OEM and ODM market status survey and investment planning recommendations report 2022-2028
聊聊支付流程的设计与实现逻辑
win32:堆破壞的dump文件分析
Bidding procurement scheme management of Oracle project management system
随机推荐
Codeforces Round #803 (Div. 2) C. 3SUM Closure
Keepalived 设置不抢占资源
Market demand survey and marketing strategy analysis report of global and Chinese pet milk substitutes 2022-2028
面试官:值为 nil 为什么不等于 nil ?
Micro service component sentinel console call
图像24位深度转8位深度
[linux]centos 7 reports an error when installing MySQL "no package MySQL server available" no package ZABBIX server MySQL available
Class exercises
Investigation on the operation prospect of the global and Chinese Anti enkephalinase market and analysis report on the investment strategy of the 14th five year plan 2022-2028
[tutorial] build your first application on coreos
统计图像中各像素值的数量
Inheritance of ES6 class
解决Zabbix用snmp监控网络流量不准的问题
win32:堆破坏的dump文件分析
Mathematical formula (test)
List的stream中Long对象与long判等问题记录
[combinatorics] generating function (commutative property | derivative property | integral property)
Ssl/bio of OpenSSL_ get_ fd
Discussion sur la logique de conception et de mise en oeuvre du processus de paiement
数学公式(测试)