Vscode automatically saves formatting

When I first started learning react, because vscode set up the automatic saving function, the script uses text/babel type format more rigorously, and the document will be automatically formatted after automatic saving. Even if the code I wrote has no problem, it will not appear after the browser runs. I think To achieve the effect, I tried to close the plug-in Prettier of the downloaded formatted document. After closing and restarting vscode, there is still no change, so I turned off the automatic saving function. Now the code written by react can run normally in the browser. Figure 2 is to turn off the automatic save

Guess you like

Origin blog.csdn.net/qq_47599989/article/details/128085224