How do I see both Resharper's and Visual Studio's refactoring suggestions? - resharper

In Resharper for Visual Studio, often I want to use a refactoring suggestion and I'm not sure whether it is part of Resharper or VS. Sometimes I have to push Ctrl+. to open Resharper's refactorings and then hit escape and then push Alt+Enter to open VS's wrench or light bulb.
Is there a way to combine these into one menu or otherwise see both, of course without losing the VS refactorings?

ReSharper used to be able to merge VS actions into the Alt+Enter menu, but right now as of 2022.3 this functionality is broken (see RSRP-486822).
I suggest you disable "Hide Visual Studio Quick Action icons in the left editor margin" setting in R# options. This was you will be able to see VS actions using Ctrl+., and R# actions using Alt+Enter.

Related

Fix Resharper intellisense

Does anyone know how to fix this, besides pressing esc then typing the variable name again?
JetBrains ReSharper 6.1 C# Edition
Build 6.1.37.86 on 2011-12-21T04:15:24
Plugins: none
Visual Studio 10.0.30319.1.
You may want to try changing the IntelliSense option:
Whether you're using IntelliSense ReSharper or Visual Studio, try changing it, then changing it back. I've sometimes had similar issues and toggling the option can help.
Usually restart of Visual Studio tends to re-enable intellisense, I'd much rather a proper fix from JetBrains.
For me, R# intellisense stopped working after installing (and then uninstalling) certain R# extensions. Adding the extensions back fixed the problem.
Edit 1:
Also, try playing with the R# IntelliSense options and see what happens.
In particular switch "Options | Environment | IntelliSense | Completion Appearance | Display completion items in:" from "Visual Studio IntelliSense font" to "Text Editor font" and back.
In the end I tried many things (including upgrading and downgrading R#) over and over again until R# IntelliSense was back.
I had this issue, and I hadn't realized I had opened a project in Folder view mode. Resharper Intellisense won't show unless you switch to a solution view.
Make sure you select a solution instead of a Folder view:

Resharper - Use only Inspection and Nothing Else at All in the Package

I have been evaluating Resharper and have heard how great it is. I agree that its code inspection is great, but I have to seriously disagree with the greatness of most other features.
All of the warts it adds to Visual Studio are killing my productivity. It has eaten Visual Studio's shortcut keys even though I told it not to, and even when I remap "Find All References" to Visual Studio, Resharper still coopts it.
We would like to be able to use the Code Inspection functionality and absolutely nothing else. Is this possible through documented or undocumented methods?
If problem only in keyboard shortcuts, you can change Keyboard scheme to Visual Studio. Go to menu Resharper -> Options -> Keyboard and Menus. Check Visual Studio Keyboard scheme at right part of window and apply it.

Why does resharper not open a file when I click Ctrl+Shift+N?

For some reason VS2010 seems to intercept it and want to create a new project.
How do I get round this problem?
Sounds like you may need to reapply the ReSharper keyboard scheme.
(Note that Ctrl+Shift+N is the R# keystroke for Go to File only in the (older) 'IntelliJ IDEA' keyboard scheme)
In ReSharper | Options | Environment | Visual Studio Integration, select the 'ReSharper 2.x or IntelliJ IDEAradio button, then clickApply Scheme`.
If you don't want Ctrl-Shift-N to launch the new project dialog then you can remove that keyboard shortcut by going Tools->Options->Environment->Keyboard

Can I Customize LinqPad shortcut keys?

I am accustomed to using ESC to "list members" and F1 to "show parameter info" in Visual Studio. This is an old habit from XCode. Is there any way to achieve this in LinqPad? I noticed an advanced preference called "use visual studio shortcut keys". My first thought is that this option would copy your key mapping settings from visual studio into LinqPad, but that does not seem to be how it works.
There's no way to customize keyboard shortcuts in LINQPad right now. The "Use Visual Studio shortcut keys" option (for which the default is TRUE) just tells LINQPad to use shortcuts consistent with VS's defaults.
Setting this option to false makes it consistent with early versions of LINQPad which used single-key combinations for things like comment/uncomment rather than the VS-style chords.

Ctrl-W stopped working

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.
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.

Resources