6

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.

Hulk1991
  • 3,079
  • 13
  • 31
  • 46
  • I did not get any answer to a related [question](http://stackoverflow.com/questions/9295572/auto-complete-statement-without-newline). – brgerner Apr 26 '12 at 15:18

3 Answers3

4

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).

brgerner
  • 4,287
  • 4
  • 23
  • 38
3

Configure the shortcut Edit.LineOpenBelow

Ravindranath Akila
  • 209
  • 3
  • 35
  • 45
1

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

Hertzel Guinness
  • 5,912
  • 3
  • 38
  • 43