Select entire text from current line in Linux using a keyboard shortcut

Viewed 6963

I've been using Ubuntu/VS Code for a week and I've been struggling with text selection.

In my mac if I want to select text starting from a position until the end of the text I can easily do that with Command + Shift + arrow, but I just can't figure out how to do the same in Linux (Ubuntu), CTRL + Shift only works selecting word by word, and sometimes we just want to select an entire row or the entire text from the current position.

Appreciate the help

2 Answers

Put your courser on the point you want to start. Press Shift+End for the end of the line.

If you want to copy the whole line from first to last simply place the cursor somewhere in that line and hit CTRL+C.

Press Home key to get to the start of the line.

For Selecting multiple lines, use Up/Down key.

The best way is, Put your courser on the point you want to start. Press Shift then click the point you want to end using mouse/touchpad.

I tried the CTRL-C suggestion above without any result. (Mint 19.3 Cinnamon) Accidentally, I found found that the left mouse button, triple-clicked, selects (highlights) the entire row the cursor is in. [Not seen that documented!] I suppose an expert on xdotools might write you a script for that. Or position the cursor at the starting point and enter Ctrl+Shift+End (or repeated right arrow) for a document, Shift+End (or repeated right arrow) for a single line.

Related