Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse copy/paste entire line keyboard shortcut

Anyone know the keyboard shortcut to copy/paste a line into a new line in Eclipse, without having to highlight the entire line?

ctrl-alt-down turns my whole screen upside down (I'm on windows). Interestingly, that's what's specified in the windows->preferences.

like image 285
Prabhu Avatar asked Oct 17 '22 23:10

Prabhu


People also ask

How do I copy an entire line in Eclipse?

In the Window-Preferences of Eclipse the shortcut of Copy Lines is still "Ctrl+Alt+Down".

How do you select and copy a whole line?

Recommend tying the script to Ctrl+c or Ctrl+Insert if you like it. @socu said in Full line selection and keyboard shortcut: It would be nice to be able to put the cursor on a line, and without selecting anything, press Ctrl + C and be able to copy the whole line.

What is Ctrl Shift R in Eclipse?

File Navigation – Eclipse Shortcuts CTRL SHIFT R – Open a resource. You need not know the path and just part of the file name is enough. CTRL E – Open a file (editor) from within the list of all open files. CTRL PAGE UP or PAGE DOWN – Navigate to previous or next file from within the list of all open files.

How do you copy a line?

Type CC in the line command field of both the first and last lines to be copied. You can scroll (or use FIND or LOCATE) between typing the first CC and the second CC , if necessary.


1 Answers

Ctrl-Alt-Down: copies current line or selected lines to below

Ctrl-Alt-Up:: copies current line or selected lines to above

Ctrl-Shift-L: brings up a List of shortcut keys

See Windows/Preference->General->Keys.

like image 405
Pierre-Antoine LaFayette Avatar answered Oct 19 '22 11:10

Pierre-Antoine LaFayette