Home >Software Tutorial >Computer Software >Solution: How to enable Vscode to automatically format files when saving them

Solution: How to enable Vscode to automatically format files when saving them

WBOY
WBOYforward
2024-01-15 14:24:36985browse

Some users found that the file was automatically formatted when saving files using Vscode. So what should they do if the file saved by Vscode is automatically formatted? Next, the editor will introduce to you in detail the solution to the automatic formatting of the file saved by Vscode. Method, if you encounter the same problem, come and take a look!

1. Double-click to open the software and click the extension icon in the left toolbar.

Solution: How to enable Vscode to automatically format files when saving them

2. Then enter "js" in the search box above the pop-up window, find the installed "js-css-html-formatter" plug-in, and then add it Disabled.

Solution: How to enable Vscode to automatically format files when saving them

3. The problem can be solved by disabling "js-css-html-formatter".

Solution: How to enable Vscode to automatically format files when saving them

The above is the detailed content of Solution: How to enable Vscode to automatically format files when saving them. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:dafanshu.com. If there is any infringement, please contact admin@php.cn delete