Page 1 of 1

Indentation of code

Posted: 18 Aug 2014 19:57
by bichlepa
I wish the automatic indentation in script actions.
In pictures (senseless code):
I wish AM will automatically convert this:
Screenshot_2014-08-18-21-48-39.png
Screenshot_2014-08-18-21-48-39.png (11.46 KiB) Viewed 8808 times
Into something like this:
Screenshot_2014-08-18-21-49-47.png
Screenshot_2014-08-18-21-49-47.png (11.7 KiB) Viewed 8808 times

Re: Indentation of code

Posted: 18 Aug 2014 21:21
by kintrupf
+1
Moving the cursor and indenting the code manually is a pain in the a** :(
Though I would prefer to have the opening brace on the same line as the if, for or else keyword...keeps the code more compact for the small screen ;)

Re: Indentation of code

Posted: 19 Aug 2014 14:06
by tschaedl
+1
But please use Allman or GNU Style for braces!

Thx,
Thomas