G
G
Gelloiss2022-01-18 13:09:39
webstorm
Gelloiss, 2022-01-18 13:09:39

How to change the size of tabs in the whole project?

Now there is a project where tab = 4 spaces. I want to continue to write it with a tab of 2 spaces. Tell me, please, is it possible to replace all project files in order to simply reduce the tab size from 4 to 2 spaces?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zhbert, 2022-01-18
@Zhbert

Can. Customize the codestyle you want to work in. You go to the refactor, select "refactor all files".
But I'd rather do file-by-file if there are few files.

V
Vasily Bannikov, 2022-01-18
@vabka

Yes, you change it in the webstorm settings, and then click "reformat all files"
If you use eslint, you can change it in eslintconfig and write eslint --fix

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question