[IDE] WebStorm adjusts tab indentation to 2 spaces — to follow the ESLint syntax specification 

step 1

modify the values in these three places to:2

step 2

Remove the default checks in both places and don’t indent the Tab of their current filedetection

note!

with the above two steps, we just changed the indentation in the file to a spaceJSTab2

however, the file indentation issue is not solved!*.vue

we found that the options did not have this one, so we went to adjust the relevant configurationCode StyleVueOther File Types

after the adjustment is saved, restart it again!!!WebStormOK

In the future, we need to change the code indentation of which type of file we only need to go to the Code Style option and find the corresponding file type to make corresponding adjustments

Leave a Reply