Last week Jean-Paul demonstrated how to get faster access to ReSharper with the Alt key. He did so by removing the competing inbuilt VS 2005 refactor menu. Also in the context menu ReSharper is masked by the VS refactoring. Here's the recipe to promote our favorite tool over there.
- In VS pick Tools | Customize
- Select the Toolbars tab
- In the list check the context menus checkbox
- A toolbar with named dropdowns will appear
- Expand Editor Context Menus
- Select Code Window
- The context menu will appear
- Tear of (Drag and drop it anywhere) the VS refactor submenu
- Right click the Resharper submenu
- Change the name to &Refactor
- Close the dialog
Et voilà, hitting the context menu key, followed by an R now pops up the available ReSharper refactorings.
This is just as fast as <Alt>R|R, but the nice thing is that the context menu pops up closer to the code to be refactored.