Settings for clean-indented code?

I just came from Sublime text and I have yet to find the right settings to have clean, indented code. My code right is hard to follow as it is a bit of a mess, there are return icons on several lines and then the line goes all the way to the left on the next line instead of being indented properly and under the same block of code. Even doing ALT+COMMAND+L doesn't make it look better.

What are the right settings to have the code look more like this below?

similarindent.gif

1 comment
Comment actions Permalink

You need playing with code style settings (Settings/Editor/Code Style/HTML/Other) and then use Code/Reformat Code to format all your files accordingly.
You should have provided the code snippet as formatted text, not as screenshot - I'd provide more concrete suggestions then. Ctrl+C takes far less time than re-typing the code manually

0

Please sign in to leave a comment.