Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select, copy or cut the current line in Netbeans

In Netbeans I find keyboard shortcuts that deal with the current line of code very helpful, like:

  • Ctrl + Shift + : duplicate

  • Shift + Alt + : move

  • Ctrl + E : delete

Is there a shortcut for selecting, cutting or copying the current line of code? I've looked through many cheat sheets and thought I'll ask here before attempting a macro.

like image 809
Jannie Theunissen Avatar asked Nov 26 '09 01:11

Jannie Theunissen


People also ask

How do I copy a current line?

Ctrl-C will copy the whole line if nothing is highlighted. Also Ctrl-D duplicates a line as it is Ctrl-Alt-Down in eclipse.

How do I select and copy a line?

Highlight the text you want to copy. Use the shortcut key combination Ctrl + C on a PC or Command + C on a Mac to copy the text. Move the text cursor to where you want to paste the text. Press Ctrl + V on a PC or Command + V on a Mac to paste the text.

How do I cut a selection line?

Ctrl + X Cut selected text. Ctrl + P Open the print window.

How do I select all current lines?

Select an entire line of text by holding down the "Shift" key and pressing "End", if you are at the beginning of the line, or "Home" if you are at the end of the line. Select an entire paragraph by placing your cursor at either the beginning or the end of that paragraph.


1 Answers

Cutting current line: Ctrl + X
Selecting + copying current line: Ctrl + C
Yes, this actually works, but only when no current selection is active

like image 191
yihtserns Avatar answered Oct 19 '22 09:10

yihtserns