CodeFolding, tab in a block


How can I activate the CodeFolding function when using the IDE? I tried

IDEEngine1.Memo.CodeFolding.Enabled := true

but this doesn't work.

Second question is: I have e.g. a block with an if-clause. How can I tab in? I tried several options but nothing worked.

Try programmatically setting this property to true after you loaded the code in the memo.

I'm not sure what exactly you mean with "tab in an if-clause"?

with "tab in" I mean the function you have in Delphi when pressing Ctrl + K + I or if you select a text an press TAB.

This is not hardcoded to a specific shortcut key. You can bind this to any key combination you like and then call AdvMemo.BlockIndent()