Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy a line to clipboard in Eclipse?

I'm trying to switch to Eclipse from my other IDE and everything works fine so far except for the problem described in the title.

In my previous IDE (Idea) I would position a cursor on a line, press Ctrl+C and the whole line would go to clipboard (if nothing is selected).

Is there any way to copy the whole current line of code to a clipboard with a single shortcut in Eclipse? I.e. without pressing Home twice, then Shift+Down, and then Ctrl+C?

PS JIC: I don't want to duplicate current line up or down - I know how to do that.

like image 238
Oleg Mikheev Avatar asked Jul 11 '12 17:07

Oleg Mikheev


1 Answers

Do a triple mouse click to select the line, then CTRL+C for the copy operation.

like image 175
Bananeweizen Avatar answered Oct 24 '22 16:10

Bananeweizen