出于某种奇怪的原因,WebStorm决定为单个文件键入的所有选项卡都应该是单个空格,而不是编辑器设置的4个选项卡。
我已经检查过,我所有其他源文件仍然可以正常工作。
我尝试过的事情:
其他人见过这样的事吗?这让我疯狂,不能选择!
答案 0 :(得分:1)
Few ideas:
You have Detect and use existing file indents for editing
option enabled and it's somehow remembers those indents. Try disabling that option at Settings (Preferences on Mac) | Editor | Code Style
.
Try re-creating file from scratch (especially if you need option from #1 to be enabled):
Do you have any .editorconfig
files in your project (even above the project root)? Maybe that file contains special settings for this file (that's of course if EditorConfig plugin is installed and enabled).