When using visual studio code to develop a React project, the command+s
code is automatically formatted when saving the code, and the html code is all messed up. The solution:
- Find the VScode plug-in extension, you can
ctrl+shift+X
call the extension by pressing - find
JS-CS-HTML Formatter
disable - then reboot