Borek Bernard
Borek Bernard

Reputation: 53231

Jump to the start of next statement

Say that I'm writing a test and my caret is here (indicated by "|"):

[ExpectedException(typeof(InvalidOperationException|))]

In Visual Studio 2010, I'd like to press some shortcut that would take me to the next line so that I could start typing "public void Etc()".

Right now, I need to press

Right arrow
Right arrow
Right arrow
Enter

Edit: It can be

End
Enter

But that wouldn't work well if the next statement was on the same line. I'm still looking for a generic command to jump to next statement (or maybe language token should I say).

Is there a VS2010 / ReSharper shortcut to aid this?

Upvotes: 1

Views: 187

Answers (2)

bretik
bretik

Reputation: 727

In VS2k8 it is Edit.LineOpenBelow = Ctrl+Shift+Enter? Don't know if the same is in VS2k10.

Upvotes: 1

ChrisBD
ChrisBD

Reputation: 9209

"End" key on your keyboard then "Return" for a newline?

Upvotes: 0

Related Questions