Hi,
When I press [Enter] on the VS editor, it keeps the previous line's indention level.
But, when I use dte.ActiveDocument.Selection.NewLine() it creates a new line with the caret at left-position 0.
I tried to use Selection.SmartFormat() after/before the NewLine() but it didn't work either.
Thank you.