For some strange reason, WebStorm has decided that all tabs typed in for a single file shall be single spaces, instead of the 4 the editor is set for.
I have checked, all my other source files are still working correctly.
Things I have tried:
- Closing tab and reopening
- Renaming the file
- Restarting WebStorm
- Restarting and clearing WebStorm cache
- Rebooting machine
- Deleting everything in the file and trying to tab, it still does it
Anyone else ever seen anything like this? It's driving me nuts not to be able to tab!
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 atSettings (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).