I use PHPStorm, but I use TABs by default and not 4 spaces, because I don't like them. Usually I then replace all TABs added with 4 spaces before doing a commit.