Adding tabs, spaces when pressing enter

Topics: Developer Forum, Project Management Forum, User Forum
Feb 24, 2013 at 4:28 PM
Edited Feb 24, 2013 at 4:29 PM

How can I make Scintilla to add tabs, spaces from the beginning of current line to the beginning of the next line while pressing Enter?
I mean that when I press enter on the line:
the next line should begin with " " (7 spaces).

Thank you.
Mar 2, 2013 at 4:18 PM
I think you want the Scintilla.Indentation.SmartIndentType property. Try setting it to SmartIndent.Simple.

Mar 2, 2013 at 6:06 PM
Yes. This is it, thanks. Actually I've created custom handling of this, but sure it's better to use native methods if they are available.