6

I'm trying to switch to Resharper from CodeRush and really struggling with this one.

In CodeRush when you are over a variable/method etc. if you press "Tab" it will jump to the next usage of it. Similar to VS.NET's Ctrl + Shift + Down/up

Is there anyway to do this in Resharper? Is there any plugin or a way for me to assign Tab to similar command in Resharper?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
dr. evil
  • 26,944
  • 33
  • 131
  • 201

1 Answers1

7

ReSharper has this functionality, but only after you have either found or highlighted the usages of a variable/method/etc...

The keyboard shortcuts depend on whether you are using the Visual Studio or IDEA keyboard mappings (set in ReSharper -> Options -> Visual Studio Integration -> Keybarod Shortcuts).

To find the usages, press Shift + F12 (Visual Studio) or Alt + F7 (IDEA).

To highlight usages, press Shift + Alt + F11 (Visual Studio) or Ctrl + Shift + F7 (IDEA).

Once you have done either of the above, you can move to the next usage using Ctrl + Alt + FPgDn (Visual Studio) or Ctrl + Alt + Down (IDEA).

This ReSharper help page has a more complete set of shortcuts.

adrianbanks
  • 81,306
  • 22
  • 176
  • 206
  • 3
    Thanks but this one takes 3 shortcuts and ~12 keypresses :) not that helpful really while coding. If you seen CodeRush Tab usage you can understand how it's used, unlike find usages it's like whatever you are over press Tab to "go to next usage". I went through the shortcut page before opening the question but couldn't find any shortcut that gets close to this feature. – dr. evil Sep 17 '11 at 17:02
  • @dr evil: Yes, it's not ideal keypress wise. From experience, you either love R# or love CodeRush - switching between them is always hard if you are used to the other. – adrianbanks Sep 17 '11 at 17:36
  • Agreed, I love CodeRush. Only reason I'm switching to R# is C# background-compiling/analysis + formatting feature. CodeRush is lacking this and rest of the team doesn't love me if I don't format my C# code as they do :) – dr. evil Sep 17 '11 at 18:07
  • 1
    Two crucial features that I can't find in R#, this "Tab" thingy and awesome bookmarking model (drop marking stuff) of CodeRush – dr. evil Sep 17 '11 at 18:08
  • @dr evil: R# does have bookmarks, although I don't know how they compare to CodeRush - http://www.jetbrains.com/resharper/webhelp/Navigation_and_Search__Bookmarks.html – adrianbanks Sep 17 '11 at 18:09
  • I know R#'s bookmark support but CodeRush have a stack based bookmarking system with some auto bookmark support (drop marker before jump) etc. works quite different and effectively – dr. evil Sep 17 '11 at 22:20