Article From:https://segmentfault.com/q/1010000011698847
Question:

This is formatted according to alt+shift+f code.

The indentation distance is too small. How to set it automatically can be indented into Figure 2.

Answer 0:

1 . Find “editor. tabSize” in the VScode settings project: 4. Set the value to the number of indented spaces you want.
2 .

The number of indent spaces can also be set if the number of spaces in the lower right is clicked on the GUI interface.

Answer 1:

Install the formatting code plug-in beautify, click the fourth on the left and search for the beautify. Once installed, press F1 to format the current file

Link of this Article: Vscode code formatting problem

Leave a Reply

Your email address will not be published. Required fields are marked *