Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

TextSelection.NewLine - keeping indention level

$
0
0

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.


Viewing all articles
Browse latest Browse all 4410


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>