Indenting a block of code in script editor

Servoy IDE could be enhanced if we had an option in the Script Editor to indent a block of code.

For example if after writing a block of code I see that I need to place an IF condition I can indent that block just selecting and indenting it.

Thanks.

select and then press TAB (or Shift TAB the other way) doesn’t work for you?

Like Johan said you should be able to use TAB. if not select the block of code and do [ CTRL + SHIFT + F ] this automatically formats the code for you. You can optionally define how you want to format the code by going in to Window → Preferences → JavaScript → Formatter. Makes life much easier! :)

Ups!! Sorry friends thats correct. I did not know that tricky, I´m new to Servoy and coming from VFP so sometimes I try to do things as I use to.

Thanks and sorry again.

jasantana:
Ups!! Sorry friends thats correct. I did not know that tricky, I´m new to Servoy and coming from VFP so sometimes I try to do things as I use to.

Thanks and sorry again.

Also try “Ctrl+i” when you have selected a block of code. It will add the right indentation for nested statements as well.
The functionality of “Ctrl+i” is about in the middle between doing just “Tab” and doing “Ctrl+Shift+f”. :)