5

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 – user1217222 Apr 6 '17 at 18:40
  • Pressing home first, then shift + end should do this. – mt025 Apr 6 '17 at 18:40
4

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.

1

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.

0

You can use AutoHotKey to create a shortcut:

; Alt-A to select the whole line
!a::
Send {Home}
Send +{End}
Return

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.