Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I disable or change a single ReSharper shortcut?

Tags:

I am using VS 2010 and there is one shortcut I really like which is a shortcut I set myself: ctrl + shift + Q in order to remove all unused usings and sort the remaining ones. I installed ReSharper and it overwrote my VS shortcuts, so pressing ctrl + shift + Q will generate a comment (/**/).

Is there any way I can disable this single shortcut? (or change it to any other key combination that will allow me to use my old one?

I tried this solution: How to change shortcut keys for a given command in ReSharper? but my shortcut is still set in my VS configs.

like image 816
JSBach Avatar asked Oct 18 '12 15:10

JSBach


1 Answers

  1. Go to Tools > Options > Environment > Keyboard
  2. Search for a command called ReSharper.ReSharper_BlockComment
  3. Remove the current shortcut or reassign another shortcut to the ReSharper command.

I'm guessing that you've set your shortcut in Global context whereas ReSharper has assigned the shortcut to its command in the Text Editor context. The latter takes precedence when you're invoking the shortcut while editing your code.

Also, consider taking a look at ReSharper's own Code Cleanup, which takes care of unused directives, other redundant items, and formatting.

like image 158
Jura Gorohovsky Avatar answered Sep 29 '22 15:09

Jura Gorohovsky