I have Resharper installed and somehow CtrlW no longer "extends the selection". I tried assigning it to Global / Resharper.ExtendSelection in Tools -> Options -> Keyboa开发者_JAVA百科rd but it still only selects one word.
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.
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...
A question and a suggestion:
- Does Resharper | Edit | Extend Selection work?
- Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
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.
In my case (Visual 2019)
- go to Tools\Options\Environment\Keyboard
- set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)
I had the silliest reason. after the resharper installation I didn't apply my license or started the evaluation.
精彩评论