Set the width of a tab character in Volar

Specific steps are as follows:

  1. Open VS Code, click the "Settings" button on the left (you can also use the shortcut key "Ctrl + ,") to open the user settings.

  2. Enter "editor.tabSize" in the search box and find the "Editor: Tab Size" setting.

  3. Set "Editor: Tab Size" to the width you need, such as 4 or 8.

  4. If you want to use space characters instead of tab characters, you can check "Editor: Insert Spaces" and uncheck "Editor: Detect Indentation".

  5. Save the settings, and the set tab width can be used in Volar.

It should be noted that Volar itself does not have an option to set the tab width, it is realized by inheriting the settings of VS Code. Therefore, you need to modify it in the user settings of VS Code to take effect.

Guess you like

Origin blog.csdn.net/Peyzhang/article/details/130406858