Indentation of code

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Indentation of code

Post by bichlepa » 18 Aug 2014 19:57

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 8803 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 8803 times

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Indentation of code

Post by kintrupf » 18 Aug 2014 21:21

+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 ;)

tschaedl
Posts: 45
Joined: 28 Feb 2013 22:17

Re: Indentation of code

Post by tschaedl » 19 Aug 2014 14:06

+1
But please use Allman or GNU Style for braces!

Thx,
Thomas

Locked