Cursor Moving to end of line

I think I must have missed a setting somewhere in the options:

When calling a method and adding parameters I like the way when I type

Method1(

Resharper adds the closing brace and positions the cursor:

Method1(|)

Adding a parameter that is a property of an object causes the cursor to the
end of the line when I type the '.'

Method1(p.)|

I then have to use the arrow keys to return to the position I wanted.

I am also getting similar behaviour with live templates:

public event $EVENTNAME$Handler $EVENTNAME$;
public delegate void $EVENTNAME$Handler(object sender, $EVENTARGSTYPE$ e);

If the editable occurence of the $EVENTNAME$ variable is set to 2 then after
typeing the first letter the cursor moves to the end of the line. eg if I
wanted to call the event MyEvent I hit 'M' and get:

public event MHandler M;|
public delegate void MHandler(object sender, EVENTARGSTYPE e);

I doubt this is a bug and presume it must be either a Resharper setting or
a combination of Resharper and VS 2005 settings I am using build 262 (I was
getting the same behaviour in 259).

Thanks

John


2 comments
Comment actions Permalink

Found a workaround in a post from June, turning off wordwrap in Visual Studio
options resolves this.


John

I think I must have missed a setting somewhere in the options:

When calling a method and adding parameters I like the way when I type

Method1(

Resharper adds the closing brace and positions the cursor:

Method1(|)

Adding a parameter that is a property of an object causes the cursor
to the end of the line when I type the '.'

Method1(p.)|

I then have to use the arrow keys to return to the position I wanted.

I am also getting similar behaviour with live templates:

public event $EVENTNAME$Handler $EVENTNAME$;
public delegate void $EVENTNAME$Handler(object sender, $EVENTARGSTYPE$
e);
If the editable occurence of the $EVENTNAME$ variable is set to 2 then
after typeing the first letter the cursor moves to the end of the
line. eg if I wanted to call the event MyEvent I hit 'M' and get:

public event MHandler M;|
public delegate void MHandler(object sender, EVENTARGSTYPE e);
I doubt this is a bug and presume it must be either a Resharper
setting or a combination of Resharper and VS 2005 settings I am using
build 262 (I was getting the same behaviour in 259).

Thanks

John



0
Comment actions Permalink

There's a planned feature called "Smart Enter" or "Complete Line" that I
sure hope makes it into the NEXT version of Resharper (it was bumped from
2.0) that would allow you to just press enter, and it would "do the right
thing" (i.e. if the parameter list was complete, it would skip to the end of
line, insert a semi-colon if necessary, and then open a new line and
position the cursor properly). This would eliminate your need to either
turn off the feature, or have to constantly reach for the 'end' key.


"John Plummer" <jplummer@REMOVETHISmemphis.co.uk> wrote in message
news:55391cb34b128c8adde3ae71f48@news.jetbrains.com...
>I think I must have missed a setting somewhere in the options:
>

When calling a method and adding parameters I like the way when I type

>

Method1(

>

Resharper adds the closing brace and positions the cursor:

>

Method1(|)

>

Adding a parameter that is a property of an object causes the cursor to
the end of the line when I type the '.'

>

Method1(p.)|

>

I then have to use the arrow keys to return to the position I wanted.

>

I am also getting similar behaviour with live templates:

>

public event $EVENTNAME$Handler $EVENTNAME$;
public delegate void $EVENTNAME$Handler(object sender, $EVENTARGSTYPE$ e);

>

If the editable occurence of the $EVENTNAME$ variable is set to 2 then
after typeing the first letter the cursor moves to the end of the line. eg
if I wanted to call the event MyEvent I hit 'M' and get:

>

public event MHandler M;|
public delegate void MHandler(object sender, EVENTARGSTYPE e);

>

I doubt this is a bug and presume it must be either a Resharper setting or
a combination of Resharper and VS 2005 settings I am using build 262 (I
was getting the same behaviour in 259).

>

Thanks

>

John

>



0

Please sign in to leave a comment.