Hello,
How can I set the cursor selection inside function for both C# and VB?
For example:
public int Add(int x, int y)
{
int z = x+y;
return z;
}
Selection is:
(cusor should be here)int z = x+y;
I am using Document.ParseData as ActiproSoftware.Text.Languages.DotNet.Implementation.DotNetParseData
and searching through SimpleName and ClassBody, but it is messy and inaccurate.
Is there a better way to do it.
The same goes for a class.
Thanks.