Solution VS code- format failed
Restore issues
- After VS code to modify the lower right corner spaces, right-format invalid. Failure mentality!
- Modify .editorconfig in indent_size to 4 , also invalid. Failure mentality! !
- Modify settings> Tab Size is 4 , is also invalid. Failure mentality! ! !
- Modify Editor: Detect Indentation status is not checked , also invalid. Failure mentality! ! ! !
solution
analysis
Why is unsuccessful?
The first set is built, it should be covered.
The second plug is set, need to be installed, it is also invalid after installation, are also covered.
The third and first, like, just a different location.
The fourth is to control the content of the document automatically detects spaces to indent and insert a space .
Conclusion is Editor: Tab Size and Editor: Insert Spaces, Editor: Detect Indentation interaction, the last two preceding control automatically detects whether a file is opened.
But if your format plug- in many cases, it is useless! ! ! !
Successfully resolved
Then I find all of the formatting plug-ins, and finally found Vetur of spaces to indent control most senior, he put all the settings and plug-ins are affected. FIG 4 is set to, finally formatting.
Finally, the last, do not install so many format plug-in, plug-in has priority. It is possible to order and install the bar.