Can not change indent for file
已回答
I can not figure out how to change indent of some files. Some files in my project have "4 spaces", even though I made settings to use "Tab". Can not find out how to change it.
请先登录再写评论。
You can change the indents for the opened file using a selector in a bottom menu:
Indents are also configured on a per-language basis at File | Settings (Preferences on macOS) | Editor | Code Style.
There are also some known issues were indentation acts incorrectly, e.g. in mixed html+php contents and in some template engine files (twig,blade).
The case was that it was a php file with HTML in it... and HTML was not set to spaces. Thanks!