- Place the caret at the start of the line.
- Hold Shift and Command.
- Press Right Arrow to extend to the line end.
- Release the keys; the line remains selected.
Ready
Official documentation · Apple Support
Why it works
Learn how to select to a line boundary on your Mac.
Sources
- Mac keyboard shortcuts — Official documentation