Resharper - not able to configure individual keyboard shortcuts - visual-studio

I am a long time CodeRush user trying out Resharper 9 with VS 2013. I am not able to find the option for configuring individual keyboard shortcuts. I don't see list of commands under Environment > Keyboard & Menus as mentioned in the documentation. 'Apply Scheme' keeps the screen unchanged. What am I missing here?
https://www.jetbrains.com/resharper/webhelp60/Configuring_ReSharper__Configuring_Keyboard_Shortcuts.html

You can configure ReSharper's keyboard shortcuts just like Visual Studio's - in Visual Studio's own keyboard dialog - Tools → Options → Keyboard. All ReSharper commands begin with "ReSharper" if you want to filter them.

Related

Visual Studio 2015: Disable Control+Click Navigation

After upgrading to Visual Studio 2015, holding control while clicking on a symbol navigates to that symbol definition. In prior versions, this would instead select the entire word.
How can I disable the navigation event when CTRL + Click(ing) a symbol, so that it highlights the word?
I do have Resharper (Ultimate 9.2) installed. The configuration option under Environment -> Search & Navigation -> Go to Declaration on Control + Click in the editor is not checked.
All the search engine results make mention of this being a feature of the Productivity Power Tools extensions in previous versions of Visual Studio. I do not have that extension installed.
I found my solution in the "Options - Text Editor - General" settings. This was on VS 2017 thou.
To disable navigation to symbol definitions in VS2015,
this one worked for me.
With Resharper Ultimate 2016.3.1, I could fix the issue by disabling "Rich mouse navigation in the editor". It can be found in Resharper Options window, under Environment > Search & Navigation.
Maybe updating Resharper could solve the issue.
Also, Productivity Power Tools is not installed on my machine.
In vs 2017 this setting is available in Tools -> Options -> Text Editor -> General -> Enable mouse click to perform Go to Definition.
You can uncheck it!
Go to ReSharper Options > Environment > Search & Navigation, then uncheck the following options:
Rich mouse navigation in the editor
Enable 'Smart go to declaration'
I finally solved it following the info I found on this page..
edit
Ensure you are using Visual Studio as your resharper keyboard scheme.
Environment -> Keyboard & Menus
Tools -> Options -> Environment -> Keyboard
To stop the go to declaration, select it and input a new key short cut for it. In this image I have demonstrated that I changed this short cut to ctr num 1 and could not change it to ctr num 3. On testing crt click does not no take me to the declaration.
Find the shortcut you want to remove, in this case Edit.NavigateTo and remove.
An update for Productivity Power Tools + VS2017. Instead of having settings for this feature, a separate plugin gets installed. So after installing PPTs, you'll have a new extension called Ctrl+Click Go To Definition. Not sure why we need that tool considering it's baked into VS, but...
Anyway, Disabling that extension (plus the other things mentioned in other comments for VS and Resharper) fixed my ctrl+click woes.
To switch to the Visual C# keyboard mapping scheme
On the Tools menu, click Options.
Expand Environment, and then click Keyboard.
Select Visual C# 2005 from the Apply the following application
keyboard mapping scheme drop-down list.
or you can do
Keyboard: CTRL + W
also plugin can be used
Keyboard Shortcut Exporter
you can import/export keymapping file

Resharper shortcuts jumbled

Yes, I have gone to "Manage options" and reset all settings.
When I press ctrl+shift+T, Resharper swaps the selected word with the one on the right. But the way I'm used to, and what I think is standard, is that this shortcut prompts a file search.
Similarly, shift+alt+T swaps lines vertically, and ctrl+T swaps two adjacent characters.
Why is this and what is the cure?
Looks like you're still using the default Visual Studio shortcuts rather than the ReSharper ones.
I believe you'll need to go to ReSharper | Options | Environment - Keyboard & Menus and select your preferred scheme (Visual Studio in this case) and ensure that you press "Apply Scheme" - this should update your Visual Studio defaults.
Note that on that options page it states:
Note: applying a new keyboard scheme does not cancel any keybindings set by the previous scheme. To start from scratch [...] reset the the keyboard bindings to their defaults at Visual Studio Options, Environment | Keyboard page.

How to reapply IntelliJ IDEA keyboard scheme?

A couple of days ago I resetted Visual Studio settings. All keyboard shortcuts were assigned to their default values. I applied IntelliJ IDEA scheme back but it seems like some Visual Studio shortcuts are not removed and some ReSharper shortcuts are not added.
I had to remove a bunch of Visual Studio shortcuts starting with Ctrl+E to make the ReSharper Ctrl+E shortcut work(same issues with Ctrl+R shortcuts and more). How can I make sure those unwanted shortcuts are removed?
Try the following in succession:
Go to Tools > Options > Environment > Keyboard, and click Reset
for the default scheme.
Go to ReSharper > Options > Environment > Visual Studio
Integration, choose ReSharper 2.x or IntelliJ IDEA and click
Apply Scheme.
I ended up exporting keyboard settings from my computer at home. It seems like ReSharper can't apply its scheme back.

Change keymap in Resharper?

I've applied the default (IntellJ IDEA) keymap to the Visual Studion and want to change some mapping to my custom, for example Generate Code (Alt+Ins) . How can I to do it or it is impossible .
P.S.Visual Studio 2010, Resharper 6.1
Go to Tools -> Options -> Environment -> Keyboard and find the relevant ReSharper shortcut in the list (I think the one you mentioned is called ReSharper.ReSharper_Generate).
Put your cursor in the Press shortcut keys box, press then shortcut combination you want to use for it, and then press the Assign button. You should now be able to use your new shortcut to access the command you chose.
Menu - ReSharper > Options... > Environment > Visual Studio Integration > Kayboard Shortcuts - you can choose VS

ReSharper key bindings problem

I use: Visual Studio 2010 Ultimate, Resharer 6.
In ReSharper's options i choose Visual Studio keyboard sheme and click Apply Sheme:
After that some shortcuts are not assigned, such as: Go to Declaration, Go to implementation, Find Usages, Complete symbol, etc:
Try
Tools -> Options, Environment -> Keyboard -> Reset
Import and Export Settings, re-import C# developer settings
devenv /reset
Nothing helped.
Configure shortcuts manually is not desirable.
Help, please.
This one worked for me 100% after trying a bunch of other things:
Go to Tools -> Options -> Environment -> Keyboard -> Press the (RESET) button
Go to ReSharper - > Options -> Keyboard & Menus -> Select the "Visual Studio" scheme -> Press "Apply Scheme"
Press "Save"
Press "CTRL-T". Since this shortcut is mapped in both VS and Resharper, you will be presented with the "Shortcut Conflict"-window. Here you select "Use ReSharper (Ultimate) command" and make sure to check the box "Apply to all ReSharper (Ultimate) shortscuts".
Voila!
This is a known issue that affects all ReSharper shortcuts that include F12 after switching from IntelliJ keymap to VS keymap. It's documented in this bug report that you're free to watch and vote for.
As far as I'm aware, the only workaround would be to reassign the broken shortcuts manually through Tools > Options > Keyboard.
Hpersw's solution works. in VS -> Tools -> Import & Export Settings -> Reset all settings and press finish. This should give you the shortcuts back
After wrestling with this for half a day and trying all of the options above, I finally found the magic setting that fixed MY problems: I UNSELECTED "Hide overriden Visual Studio Items" in Options/Keyboard and Menus"
In VS go to Tools -> Options -> Environment -> Keyboard -> Apply the following keyboard mapping schema: [Default]
The easiest way to solve this problem is :
Go to: ReSharper -> Manage Options -> Reset All Settings
These steps gonna solve your shortcuts (key bindings) issues.
You do not have to keep performing the following actions:
1) Go to Tools -> Options -> Environment -> Keyboard -> Press the (RESET) button
2) Go to ReSharper - > Options -> Keyboard & Menus -> Select the "Visual Studio" scheme -> Press "Apply Scheme"
I know this is a little old, but I just thought I'd share my epiphany... It seems that with Resharper 7x and VS2010 (probably anything later too), is best set when you op for the selecting the "Text Editor" as the settings to update under Options->KeyBoard. So, what I would recommend if you like some of Resharper features, use this site to get the shortcuts Resharper Shortcuts
Then set them accordingly with Text Editor selected as the settings to update. Global does NOT seem to work consistently.
FYI- Text Editor works for C#, CSS and javascript. Not sure about other languages within VS.
Taken from the documentation on Configuring Keyboard Shortcuts:
To switch between two available keyboard schemes or restore the default state of your currently selected scheme
On the main menu, choose ReSharper | Options.
Select Environment | Visual Studio Integration.
In the Visual Studio Integration tab, select Visual Studio, ReSharper 2.x or IntelliJ IDEA, or None, and click Apply Scheme. If you selected None, you can define an arbitrary set of custom keyboard shortcuts in Visual Studio's native Options menu (Tools | Options | Environment | Keyboard) - see To configure keyboard shortcuts above.
Also, here's some documentation on how to resolve keyboard shortcut conflicts with Resharper
Doing "Reset All Settings" in VS Import&Export usually helps with restoring shortcuts. But it will, eh, reset all VS settings.

Resources