After VS code modification comes indent invalid, I managed to make him indented

Solution VS code- format failed

Restore issues

  1. After VS code to modify the lower right corner spaces, right-format invalid. Failure mentality!
    Here Insert Picture Description
  2. Modify .editorconfig in indent_size to 4 , also invalid. Failure mentality! !
    Here Insert Picture Description
  3. Modify settings> Tab Size is 4 , is also invalid. Failure mentality! ! !
    Here Insert Picture Description
  4. Modify Editor: Detect Indentation status is not checked , also invalid. Failure mentality! ! ! !Here Insert Picture Description

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.
Here Insert Picture Description
Finally, the last, do not install so many format plug-in, plug-in has priority. It is possible to order and install the bar.

Released three original articles · won praise 0 · Views 151

Guess you like

Origin blog.csdn.net/qq_34173038/article/details/104799622
Recommended