How to tell the editor to indent automatically


is there a way to tell the Editor to "auto indent" on a new line? If I used tab or space on a line, write something and press enter, the cursor always starts at the beginning of the new line instead of where the last line began.
Idea and other editors do this by default but I didn't found an option in PhpStorm and RubyMine to turn this on.

- Sascha


Have you tried File -> Settings -> Code Style -> General ?


yes, but as far as I can tell, this only handles the "static" indent in statements etc.. If you start a line with 4 or 7 spaces or a tab, the next line should also start with 4 or 7 spaces or a tab, just like Idea or almost any other text editors do it.


Please sign in to leave a comment.