Is there a way to not select whitespace after a word when double-clicking?

15,815

Solution 1

As far as I am aware, this is the default behaviour.

What I often do is to double-click the word and then hold shift and press the left arrow key (application allowing). I have found this to be the quickest method rather than attempting to precisely select the word under scrutiny with the mouse which is often a little tricky and fiddly.

Solution 2

I double click on the word, but hold the second click and drag it slightly. For some reason selecting multiple whole words (double-click and drag) doesn't select the whitespace afterwards, so you can double-click and drag just the one word.

Solution 3

A quick way to select a word without the trailing space

  1. Double-click a word.
  2. Without releasing the mouse button after the second click, move the mouse a tiny bit to the left.
  3. Release.

Tested on Windows 10 (build 17758).

demo animation

Solution 4

Simplest method for me: double click first selects word with following space, then hold shift and single click on same word (or click on any another word to extend selection). This selects word(s) without space.

Solution 5

Easiest way to do this is double click, but do not release the mouse button on the second click. Then drag up (or down) slightly while still holding the mouse button down. You now will only have the word selected without a space on the end.

Share:
15,815

Related videos on Youtube

Mircea
Author by

Mircea

father. husband. web developer. gamer. I click buttons for a living and for fun. @doozerblake

Updated on September 18, 2022

Comments

  • Mircea
    Mircea almost 2 years

    In Windows, it seems the default behavior when double-clicking a word is to select the word, and any whitespace following the word (spaces or tabs). You can see this behavior across all programs, so I'm assuming this isn't a per-program setting. This may be common to other operating systems, but I don't know from personal experience.

    Is this something that can be configured in the OS anywhere or is it something I just have to live with?

  • Scott - Слава Україні
    Scott - Слава Україні almost 6 years
    Where does this work?  It doesn’t work in Notepad, WordPad, Internet Explorer or Microsoft Word.
  • Brian Adkins
    Brian Adkins over 5 years
    I think this is the best solution... * Single word: Double-click and drag slightly left to de-select the trailing space * Multiple words: Double-click first word then drag to right to select additional words without trailing spaces
  • vic
    vic over 4 years
    I cannot replicate this solution in Word 2019.
  • psychoslave
    psychoslave almost 4 years
    Can you assign a macro on double click event to perform that too, on a Windows 7 box?
  • Paul B
    Paul B almost 4 years
    The software assigns macros to keyboard keys and mouse buttons not events.
  • pabouk - Ukraine stay strong
    pabouk - Ukraine stay strong over 3 years
    Unfortunately this solution does not work in most of the applications in Windows 10 2004. I tested it in Notepad, Word 365, Firefox 82, My Phone (there the selection by words does not work at all!). The solution worked as described in Chrome and Edge browsers 86. On the other hand double click in Notepad++ or VS Code does not select the trailing whitespace. --- Anyway I did not know the trick for selection by words using the unfinished double click.
  • Michael R
    Michael R over 3 years
    You should say where this works, because it isn't system-wide. For example, this works in Chromium browsers.
  • marc.guenther
    marc.guenther over 2 years
    This is also true an MacOS
  • wilkas
    wilkas over 2 years
    Works in Chrome on Windows 10 21H1
  • Eric Kittell
    Eric Kittell over 2 years
    Which application this applies to?
  • Socowi
    Socowi over 2 years
    From googling "Smart Cut and Paste" it seems like this setting is from Microsoft Office / Word.