Resharper equivalent of CodeRush's "Tab" shortcut (go to next/prev usage)
Asked Answered
B

1

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?

Boulogne answered 17/9, 2011 at 16:11 Comment(0)
C
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.

Cauterant answered 17/9, 2011 at 16:41 Comment(6)
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.Boulogne
@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.Cauterant
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 :)Boulogne
Two crucial features that I can't find in R#, this "Tab" thingy and awesome bookmarking model (drop marking stuff) of CodeRushBoulogne
@dr evil: R# does have bookmarks, although I don't know how they compare to CodeRush - jetbrains.com/resharper/webhelp/…Cauterant
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 effectivelyBoulogne

© 2022 - 2024 — McMap. All rights reserved.