Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2010 + ReSharper 6.1 - Shortcut for inserting a new line?

In IntelliJ it is possible to press Ctrl + Alt + Enter to insert a new line at the current curser position in the editor.

Does such a shortcut exist for VS + ReSharper?

Also I'd love to have the IntelliJ Shortcut to complete the current statement without jumping to the next line.

In IntelliJ

Ctrl + Shift + Enter = Completes current statement without jumping to the next line.
Shift + Enter = Only jumps to the next line.
Ctrl + Alt + Enter = Inserts a new line and moves the current line down.

Would love to have this for VS + ReSharper

I really appreciate your help.

like image 889
Claus Polanka Avatar asked Apr 21 '12 11:04

Claus Polanka


3 Answers

To your requirement:

complete the current statement without jumping to the next line.

The shortest way I know is Ctrl+Shift+Enter, Ctrl+L (if using VisualStudio scheme).

like image 166
brgerner Avatar answered Oct 13 '22 03:10

brgerner


Configure the shortcut Edit.LineOpenBelow

like image 23
Ravindranath Akila Avatar answered Oct 13 '22 03:10

Ravindranath Akila


IIRC, Ctrl+enter inserts a new line in VS (even without resharper)...

like image 35
Hertzel Guinness Avatar answered Oct 13 '22 04:10

Hertzel Guinness