Select to the beginning of the line
Press Shift+Home on Windows, or ⇧⌘← on Mac, to select everything from the cursor back to the start of the current line.
| Action | Mac | Windows | |
|---|---|---|---|
| Select to beginning of line | ⇧⌘← | Shift+Home | |
| Select to end of line | ⇧⌘→ | Shift+End | |
| Move to beginning of line (no select) | ⌘← | Home | |
| Select one word left | ⇧⌥← | Shift+Ctrl+← | |
| Select the whole line | ⌘← then ⇧⌘→ | Home then Shift+End |
Select to the start of the line on Windows
Place the cursor anywhere in a line and press Shift+Home to highlight everything from the cursor back to the first character of that line. It works in text editors, Word, browsers and code editors. To extend the selection to the end instead, use Shift+End.
Select to the start of the line on Mac
Press ⇧⌘← (Shift + Command + Left Arrow) to select from the cursor to the beginning of the line. Note the difference from Windows: on Mac the Home key scrolls the document, so ⌘← — not Home — is "beginning of line", and adding ⇧ turns the move into a selection.
Select the whole line fast
To grab an entire line, jump to its start then select to its end: Home then Shift+End on Windows, or ⌘← then ⇧⌘→ on Mac. See also select to end of line and select by word.
FAQ
How do I select to the beginning of a line?
Press Shift+Home on Windows, or ⇧⌘← (Shift+Command+Left) on Mac, to select from the cursor to the start of the line.
Why doesn't Shift+Home work on Mac?
macOS uses ⌘ with arrow keys for line navigation. Use ⇧⌘← to select to the beginning of the line; the Home key scrolls the document instead.
How do I select the entire line?
Go to the start then select to the end: Home then Shift+End on Windows, or ⌘← then ⇧⌘→ on Mac.