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.
6 Answers
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.
-
Where can I find this in Resharper 2017.1.2? – radbyx May 17 '17 at 07:22
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...
- 1
- 1
- 5,782
- 3
- 36
- 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
-
2ReSharper.Resharper_ExtendSelection and ReSharper.Resharper_ShrinkSelection are the command that worked for me – Vdex Sep 23 '14 at 13:25
A question and a suggestion:
- Does Resharper | Edit | Extend Selection work?
- Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
- 4,417
- 1
- 27
- 36
-
-
2Possibly it's your source file doesn't support Extend Selection? I believe HTML and javascript don't support it. Is it available in a C#/VB file? – Kevin Feb 18 '11 at 15:12
-
This worked for me. Extend Selection work is now CTRL + Alt + Left or Right Arrow keys in 2017.3.2 – Sanket Sonavane Feb 15 '18 at 05:53
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.
- 1,390
- 11
- 26
In my case (Visual 2019)
- go to Tools\Options\Environment\Keyboard
- set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)
- 36,115
- 32
- 128
- 201
- 793
- 2
- 10
- 24
I had the silliest reason. after the resharper installation I didn't apply my license or started the evaluation.
- 1,503
- 1
- 17
- 30