Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A shortcut to select a line in Eclipse?

Is there a keyboard shortcut to select all the line your cursor is currently on? In Eclipse? Or even in general on Windows/Linux?

like image 271
Arturas M Avatar asked Oct 20 '12 23:10

Arturas M


People also ask

What is the shortcut key to select line?

To select a line of text, place your cursor at the start of the line, and press Shift + down arrow. To select a paragraph, place your cursor at the start of the paragraph, and press Ctrl + Shift + down arrow.

How do I copy a single line in Eclipse?

In Eclipse you can duplicate a codeline via the shortcut CTRL+ALT+Up/Down.

What is Ctrl G in Eclipse?

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


1 Answers

Solution for Eclipse:

Hold Alt and press and .

Alt + and will move an entire line up or down, so just move it back and you end up with the entire line selected. Thus, the order of and does not matter.

like image 133
modulitos Avatar answered Oct 03 '22 17:10

modulitos