How to automatically indent a block of code

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:

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:
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: