In visual studio how to select word in text editor using keyboard

21,381

Solution 1

In Tools | Options | Environment | Keyboard enter "Word" into "Show commands containing" and see all commands associated with words.

Here the command Edit.SelectCurrentWord is assigned to Ctrl + W, but your setup might be different. Ctrl + Shift + W is another common setting.

Solution 2

When using Resharper 'Shift + Ctrl + W' shortcut may be overriden and not working. Create new shortcut for Edit.SelectCurrentWord as 'Ctrl + W, Ctrl + W'. It works fine so you may use this and resharper shortcuts.

Solution 3

In Visual Studio 2019 the default keypress to select a word is:

Ctrl + Shift + W

enter image description here

Share:
21,381

Related videos on Youtube

adopilot
Author by

adopilot

Hello ! I am coming from Bosnia and Herzegovina,Sarajevo capital, I work in family firm as an IT administrator, My primary task is to eventing works well and lot of other stuff such as buying software, buying equipment, administrating SQL servers and much more. Our Company business is retrial and We have shops all around country with more than 300 working station with more than 1000 employed. In free time I try to learn programing in .NET and I having fun driving motocross bike, some time by summer I do a solar gliding flaying as sport pilot. If You fund my English is bad do not be maid my education was mostly during the war in Bosnia, in that time we did not have to study much for good ratings. Best regards Admir

Updated on July 09, 2022

Comments

  • adopilot
    adopilot almost 2 years

    In earlier version of Microsoft Visual Studio products if user in text editor hit CTRL+W editor will do select the word where is pointer. Does that keyboard shortcut exists still in Visual Studio 2010?

    • pepr
      pepr over 5 years
      I Visual Studio 2017 Community ed. it is (again?) Ctrl+W. I strongly believe it is by default. (At least, I did not set it.)