How to Select Text Faster with the Keyboard

You don’t have to use a mouse all the time.

I'll show you keystrokes that let you select a letter, word, line, or whole document without your hands ever leaving the keyboard.
A Corgi using a keyboard at a desktop PC. The screen shows a document with a sentence selected. An actual computer mouse is lounging in a tiny beach chair beside the keyboard, sunglasses on, while two paws type confidently.
(Image: Gemini)

My recent article, How to Select Text Faster: Six Tricks You May Not Know, was quite popular, but it also drew a common response: what about the keyboard?

Fair enough. Let’s set the mouse aside (mostly) and focus on using the keyboard to select text.

TL;DR:

Keyboard text selection

Hold SHIFT and use your arrow keys to select text. Add CTRL to select a word at a time. SHIFT+Home and SHIFT+End select to the start or end of a line. CTRL+A selects everything. Test Page Up and Page Down in your favorite programs.

It all begins with SHIFT

Almost all keyboard selection techniques are normal cursor movement techniques combined with the SHIFT key. The right arrow moves one character to the right, while SHIFT+right arrow creates or extends the selection one character to the right.

Single character movement and selection.
Single character movement in text selection. (Image: askleo.com)

As soon as you release the SHIFT key, the selection is complete. You can then operate on it. For example, typing CTRL+B toggles bold on and off for the selection.

Toggling Bold on a selection.
Toggling bold on a selection. (Image: askleo.com)

While you hold down the SHIFT key, you can move the cursor using any of the arrow keys in any direction to create the selection you want.

Moving around while holding shift.
Moving around while holding the shift key down. (Screenshot: askleo.com)

CTRL right and left to select by word

If you hold down the CTRL and SHIFT keys as you move the cursor around with the right and left arrow keys, you’ll select (or deselect) one word at a time.

Selecting and deselecting one word at a time.
Selecting and deselecting one word at a time. (Image: askleo.com)

If you don’t hold down SHIFT, you’ll move the cursor one word at a time without creating or extending a selection.

CTRL up and down to select by paragraph

If you hold down the CTRL and SHIFT keys as you move the cursor with the up and down arrow keys, you’ll select by paragraphs.

CTRL+SHIFT+Up and Down to select paragraphs.
CTRL+SHIFT+Up and Down to select paragraphs. Click for larger image. (Screenshot: askleo.com)

If you don’t hold down SHIFT, you’ll just move the cursor to the next paragraph. Note that some tools (such as Notepad, in the example above) consider blank lines between paragraphs as a kind of paragraph themselves.

Other movement keys

SHIFT+Home or End will create (or extend) the selection to the beginning or end of the current line, respectively.

Selecting using SHIFT+Home and SHIFT+End.
Selecting using SHIFT+Home and SHIFT+End. Click for larger image. (Screenshot: askleo.com)

CTRL+SHIFT+Home or End will select from the current location to the beginning or end of the document, respectively.

CTRL+SHIFT+Home and End to select to beginning or end of document. Click for larger image. (Screenshot: askleo.com)
CTRL+SHIFT+Home and End to select to the beginning or end of a document. Click for larger image. (Screenshot: askleo.com)

I find that SHIFT+Page Up and Page Down, as well as SHIFT+CTRL+Page Up and Page Down, differ between applications. Some select to the beginning (or end) of the current paragraph, and some to the beginning (or end) of the current document. It’s worth experimenting with those keystrokes to see how they behave in the applications you use most often.

And finally, our old friend CTRL+A selects “All”, meaning it selects everything in the current document or edit box.

Do this

Depending on how you use your computer, you may find keyboard selection more useful than the mouse. And if you’re at all like me, you probably switch between the two constantly. Given how much time we spend editing text, it’s worth knowing how to select it efficiently.

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Podcast audio

Play

1 thought on “How to Select Text Faster with the Keyboard”

  1. Thank you. I summarised it into a cheat-sheet .txt file for any interested:

    From Ask Leo on Youtube. Help on selecting text quickly and efficiently using the Keyboard
    or using the Mouse.

    Keyboard
    ========

    Press this key To do this

    Shift+Arrow Select text upto where cursor is moved, 1 char at a time (arrow == left/right/up/down)

    Ctrl+Shift+Arrow Select text upto where cursor is moved, 1 word at a time

    Shift+Home Select text from cursor to beginning of line

    Shift+End Select text from cursor to end of line

    Ctrl+Shift+Home Select text from cursor to beginning of document

    Ctrl+Shift+End Select text from cursor to end of document

    Ctrl+A Select whole document

    Shift+Page-Up/Down and Ctrl+Shift+Page-Up/Down Application dependent. Try to see effect.

    __________________________________________________________________________________

    Mouse
    =====

    Click-hold-drag-release usual way of selecting

    Double-click select entire word

    Double-Click-hold-drag-release Selects a word at a time

    Triple-click select entire line or para

    Triple-Click-hold-drag-release Selects a line or para at a time

    Margin-click-hold-drag-release select an entire line at a time

    Click, move, SHIFT+click select all text between the 2 click positions

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.