Select Whole Line Of Text Regardless Of Cursor Position

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

user1217222

Posted 2017-04-06T18:28:35.830

Reputation: 53

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 – 2017-04-06T18:40:13.797

Pressing home first, then shift + end should do this. – mt025 – 2017-04-06T18:40:20.803

Answers

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.

Jay

Posted 2017-04-06T18:28:35.830

Reputation: 274

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.

helper

Posted 2017-04-06T18:28:35.830

Reputation: 111

0

You can use AutoHotKey to create a shortcut:

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

Nicolas

Posted 2017-04-06T18:28:35.830

Reputation: 815