Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: Move to a new line via shortcut?

I have recently moved to Eclipse. In Visual Studio there is a shortcut Crtl + Shift + Enter where I go to a new line no matter where I am in the code (in the middle of a line, close to the beginning/end of a line,...).

Is there such a shortcut in Eclipse? I can't find it in the list of shortcuts.

PS. I am not sure if the mentioned shortcut is Visual Studio native shortcut or it's ReSharper's shortcut.

like image 200
sandalone Avatar asked Dec 30 '10 18:12

sandalone


People also ask

What is the shortcut to get to the next line?

To add spacing between lines or paragraphs of text in a cell, use a keyboard shortcut to add a new line. Click the location where you want to break the line. Press ALT+ENTER to insert the line break.

What is Ctrl Shift G in Eclipse?

Search – Eclipse Shortcuts CTRL SHIFT G – Search for current cursor positioned word reference in workspace. CTRL H – Java search in workspace.

What does Ctrl k do in Eclipse?

In Eclipse, if the cursor is over a word and you press Ctrl + K you will jump to the next occurrence of that word in the file.


1 Answers

Shift + Enter enter line below current line

Ctrl + Shift + Enter enter line above current line

like image 130
Andreas Wong Avatar answered Sep 29 '22 05:09

Andreas Wong