PHPStorm should insert 4 spaces when I hit tab

I want that PHPStorm should insert 4 spaces when I hit tab.

I have found followed the instructions here, but it isn't working. Am I doing something wrong, or is this a bug?



0
1 comment

Hi there,

First of all: as per your first screenshot, you've told to use TAB character (4 spaces wide) and not 4 SPACES.

As for the actual issue (assuming that the file is correct one -- code on 2nd screenshot looks like CSS/SCSS but I see no actual active file tab to confirm that):

1) You may have "detect indents in existing file and use them" option enabled -- https://www.jetbrains.com/help/phpstorm/code-style.html#d286299e129

2) You may have .editorconfig file that has different instructions. With EditorConfig plugin present and enabled, settings from such file will override your Code Style settings (the whole nature of such files). https://www.jetbrains.com/help/phpstorm/code-style.html#EditorConfig

0

Please sign in to leave a comment.