当前位置:网站首页>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
边栏推荐
- [Yu Yue education] family education SPOC class 2 reference materials of Shanghai Normal University
- Kotlin的协程:上下文
- 圖像24比特深度轉8比特深度
- STM32实现74HC595控制
- Brief introduction to the core functions of automatic penetration testing tool
- Introduction to SolidWorks gear design software tool geartrax
- TCP congestion control details | 3 design space
- Life perception 1
- Redis on local access server
- Leetcode 108 converts an ordered array into a binary search tree -- recursive method
猜你喜欢

STM32 realizes 74HC595 control

MySQL grouping query

How to draw non overlapping bubble chart in MATLAB
![[untitled]](/img/83/5a57ed90aaafde94db600246256867.jpg)
[untitled]

STM32实现74HC595控制

1146_ SiCp learning notes_ exponentiation

Draw some simple graphics with MFC

Bidding procurement scheme management of Oracle project management system

Cloud primordial weekly | CNCF released the 2021 cloud primordial development status report, which was released on istio 1.13

MySQL has been stopped in the configuration interface during installation
随机推荐
数学公式(测试)
How to deploy applications on kubernetes cluster
Applet with multiple tabs and Swipers + paging of each tab
Life perception 1
【统信UOS】扫描仪设备管理驱动安装
Kotlin's collaboration: Context
Research Report on market demand and investment planning for the development of China's office chair industry, 2022-2028
PHP MySQL where clause
MySQL grouping query
The number of incremental paths in the grid graph [dfs reverse path + memory dfs]
PHP MySQL inserts multiple pieces of data
PHP MySQL preprocessing statement
This diversion
Mathematical formula (test)
Deops入门
面试官:值为 nil 为什么不等于 nil ?
[LINUX]CentOS 7 安装MYSQL时报错“No package mysql-server available“No package zabbix-server-mysql availabl
[untitled]
Talk about the design and implementation logic of payment process
A. Berland Poker & 1000 [simple mathematical thinking]