I want to fix this issue: http://youtrack.jetbrains.com/issue/HAXE-354 as it seems it's not going to be fixed in the near future, and I think it's very annoying.
I've been taking a look at the code but I cannot seem to find the place where this needs to be fixed. What I need to know is the API IDEA uses when pressing the enter key and adding the spaces/tabs to a new line. Pasting code works correctly though.
I found some Indenting code, but the Whitespace PSI already contains the spaces/tabs when that class is called.