In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to solve the problems that appear after vscode format is saved. It has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Modify settings.json file configuration
1. After formatting function space is deleted problem
"vetur.format.defaultFormatter.js": "vscode-typescript", "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
2. code indentation
"vetur.format.options.tabSize": 4,
3. Single quotes become double quotes when saved
"prettier": { // Prettier option here "semi": false, "singleQuote": true //singleQuote question }},
There are also rough solutions:
1, in webpack.config.js to remove ESlint configuration code in the file can be, if it is in the vue project, we need to open the project root directory under the build folder and open the webpack.base.conf.js file, and then remove ESlint configuration code in the file can be
2. Modify the following configuration
{ "editor.formatOnType": false, "editor.formatOnSave": false}
If the save format code still appears after saving, you need to disable the JS-CSS-HTML Formatter plug-in to run perfectly, and Alt+shift+f to format
Thank you for reading this article carefully. I hope that Xiaobian's article "How to solve the problems after vscode format is saved" will help everyone. At the same time, I hope everyone will support you a lot. Pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.