Is there any windows keyboard shortcut to select a whole line of text regardless of the cursor position? I know of similar commands like CTRL-A for selecting everything, or SHIFT-End/Home for selecting a line but the cursor has to be at the very beginning or end of said line.

Is there any shortcut that will select the whole line while ignoring the current position of the cursor? I might just setup an AutoHotKey script but was curious if there was an existing command

  • Here's the AHK script I threw together quickly if anyone wants it: ^2:: Send, {Home}{Shift Down}{End}{Shift up}{Ctrl down}c{Ctrl up} Return Apr 6, 2017 at 18:40
  • Pressing home first, then shift + end should do this.
    – mt025
    Apr 6, 2017 at 18:40

3 Answers 3


Microsoft doesn't list such a shortcut here, so I doubt there is. Even Wikipedia didn't have one listed (based on a quick page search). Usually I just press Home first, then Shift + End.


I haven't heard of a keyboard shortcut for that.

But, you can do it easily with a mouse, by triple-clicking anywhere on the line you want to select.


You can use AutoHotKey to create a shortcut:

; Alt-A to select the whole line
Send {Home}
Send +{End}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .