16

I have Resharper installed and somehow CtrlW no longer "extends the selection". I tried assigning it to Global / Resharper.ExtendSelection in Tools -> Options -> Keyboard but it still only selects one word.

udondan
  • 57,263
  • 20
  • 190
  • 175
JoelFan
  • 37,465
  • 35
  • 132
  • 205

6 Answers6

13

I have found the resolutions. Go to ReSharper -> Options -> Visual Studio Integration -> Keybord Shortcuts --> ReSharper or IntelliJ IDEA.Next time when you press CtrlW, Visual studio will ask you about shortcuts. You will choice ReSharper shortcuts and that is it.

udondan
  • 57,263
  • 20
  • 190
  • 175
Alexandr
  • 5,460
  • 4
  • 40
  • 70
6

A solution i found was to reconfigure keys at the Text Editor level (they are defined at Global level and for some (annoying) reason Resharper overrides this.

So: (Tools->Options->Environment->Keyboard), set Use new shortcut to Text Editor and redefine your shortcuts.

Tip: Look for your CtrlW favorites by writing view. at Show commands containing. I needed View.ErrorList (CtrlW, CtrlE), View.Output (CtrlW, CtrlO) & View.SolutionExplorer (CtrlW, CtrlS)

HTH

p.s. I even disabled Resharper and it still won't work...

Community
  • 1
  • 1
Hertzel Guinness
  • 5,912
  • 3
  • 38
  • 43
  • I was actually trying to figure out the opposite. Ctrl-w stopped closing the current document... I overrode it at the global level, but resharper had stolen it in "Text Editor". This has been driving me nuts for *weeks*. Thank you! – superlime Apr 29 '12 at 07:02
  • 2
    ReSharper.Resharper_ExtendSelection and ReSharper.Resharper_ShrinkSelection are the command that worked for me – Vdex Sep 23 '14 at 13:25
5

A question and a suggestion:

  • Does Resharper | Edit | Extend Selection work?
  • Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
Kevin
  • 4,567
  • 1
  • 28
  • 36
2

For me the reason was a silly one:

My C# file was removed from the project accidentally, so resharper no longer regarded it as C# code and so there were no syntactical elements to extend the selection to. In other files it worked ok.

user829755
  • 1,489
  • 13
  • 27
2

In my case (Visual 2019)

  1. go to Tools\Options\Environment\Keyboard
  2. set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)

enter image description here

JoelFan
  • 37,465
  • 35
  • 132
  • 205
helpME1986
  • 933
  • 3
  • 12
  • 26
0

I had the silliest reason. after the resharper installation I didn't apply my license or started the evaluation.

silver
  • 1,633
  • 1
  • 20
  • 32