A shortcut to select a line in Eclipse?

I use Ctrl+D to delete the current line, followed by Ctrl+Z, that restores the line and selects it.


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.


What i use is Home, then Shift+End, that will go to the beginning of the line and then select until the end, which effectively selects the whole line. Once you get used to it you can do it really fast. To get a quick view of all current shortcuts you can use Shift+Ctrl+L.