linuxkeyboard-shortcutstextselection

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


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


Solution

  • 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.