How to automatically indent a block of code

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

How to automatically indent a block of code

Postby amcgilly » Wed Jan 04, 2006 2:10 pm

I just discovered that if you select a chunk of code in the method editor and hit TAB, it indents the selected chunk! Shift-TAB outdents it. Very useful when adding/removing control structures (if, for, while, etc.) in some existing code.

Note to Servoy - I don't see this documented anywhere in the docs. Well worth mentioning there... :wink:
Adrian McGilly
Servoy Developer

Image
amcgilly
 
Posts: 375
Joined: Fri Dec 09, 2005 12:03 am
Location: San Francisco, CA

Re: How to automatically indent a block of code

Postby Robert Huber » Wed Jan 04, 2006 2:55 pm

Hi Adrian

Very helpful would be a funtion which does automatically indent the whole code. Doing that manually is (sometimes, if one has many curly brackets) time consuming. Bit I assume there is none at the moment?

Best regards, Robert

amcgilly wrote:I just discovered that if you select a chunk of code in the method editor and hit TAB, it indents the selected chunk! Shift-TAB outdents it. Very useful when adding/removing control structures (if, for, while, etc.) in some existing code.

Note to Servoy - I don't see this documented anywhere in the docs. Well worth mentioning there... :wink:
Robert Huber
7r gmbh, Switzerland
SAN Developer
www.seven-r.ch
User avatar
Robert Huber
 
Posts: 1239
Joined: Tue Aug 23, 2005 6:52 pm
Location: Schaffhausen, Switzerland


Return to How To

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron