Search code examples
typescriptwebstormindentation

Change indentation from 2 to 4 spaces in whole project WebStorm


Is there a way to change the indentation of all files in my project without manually changing them per line? When I change tab and indent spacing, it doesn't change the existing indents and tabs but rather when I indent in the future if that makes sense.

Basically I want to immediately change the indentation spacing in one go for my whole project in stead of per file.


Solution

    • Set up the desired indent in File | Settings | Editor | Code Style | | Tabs and Indents
    • in the project explorer, select your project root, choose Code | Reformat Code from the main menu