How to tell the editor to indent automatically

Hi,

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

2 comments

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

0

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.

0

Please sign in to leave a comment.