I don't know if this is a bug or what, but I can't find any information to help me solve this. While working on my last three projects using phpstorm, randomly when i create a new php file and start to code, the indentation settings stop working. They are set at 4 spaces for tabs and in the code styles, but when i hit the tab key or move to a new line, it will only indent one space, and if you hit tab, you get only 2 spaces. I have changed the settings every which way and the only way I can fix it is to uninstall phpstorm and my settings, reinstall and manual key in my settings again. If I switch to a file that has the correct indention, it works fine for that file, but not for any new files. Anyone having this problem?