Home > Enterprise >  Visual Studio Indent Using Spaces never saves the setting
Visual Studio Indent Using Spaces never saves the setting

Time:07-26

So the standard setting seems to be 1 tab equals 2 spaces for indentation. I always change that to 4 spaces, you can see that here . But that setting never seems to save. When I work with Visual Studio on the next day, its back to 2. May it be that the Prettier Extension is overwriting something?

CodePudding user response:

Use PHPStorm, its very useful. Now check this website: https://code.visualstudio.com/docs/getstarted/settings

CodePudding user response:

I found the problem: The setting "Editor: Detect Indentation" has to be turned off. Also you can go to Prettier's Settings and set the Indentation to 4 Spaces too, so when autoformatting, the indentation of 4 instead of 2 spaces is kept.

  • Related