Blogs

Rory Becker - DevExpress CodeRush Blog

CodeRush Tip - Tab to Next Reference

     

TabToNextReference

Tab to next Reference is one of those features that’s so simple to pick up, but once you’ve used it for even a few minutes, you’ll wonder how you ever survived without it.

It allows you to [Tab] between the references to an identifier just, as if you were tabbing between the elements of a dialog box.

Simply place your caret within an identifier, and hit the [Tab] key.

Immediately CodeRush highlights all references to the identifier, and navigates you to the next one in sequence.

Each additional press of the [Tab] key will navigate to the next occurrence of the identifier in question.

When you reach the last reference, an additional press of [Tab] will navigate back to the first instance.

Like tabbing between controls on a form, [Shift] + [Tab] will navigate through your references in reverse order.

Finally, hit the [Esc] key and your caret will jump back to where you started.

Oh and did I mention, this feature works solution wide, skipping from file to file and project to project, to locate each and every reference.

I should also point out that whilst my example on the right is in VB.Net, this feature works just as well in C#. It’s even supported in JavaScript.

Go on… Try it…

Published Apr 08 2011, 03:49 PM by Rory Becker - DevExpress
Filed under: , ,
Technorati tags: Tips, Navigation, CodeRush
Bookmark and Share

Comments

 

Don Wibier said:

I really love these short tips, just like the (un)comment feature mentioned earlier this week.

Keep on going with these sweets!

April 9, 2011 2:52 AM
 

James Zhong said:

Very nice feature that will help me much! :)

April 9, 2011 6:04 AM
 

Graham Charles said:

Just curious -- will the tab-to-next-reference respect scope rules? That is, in your example, if a different method on a different class uses the same variable name mName, will this technique move to it? I assume not, because you say "tab to next *reference*," but I thought I'd confirm.

April 28, 2011 2:26 PM
 

Rory Becker - DevExpress said:

@Graham Scope is indeed respected. You will not tab between references to different variables.

April 28, 2011 5:11 PM
 

James Foye said:

This has never worked for me. Does it need to be turned on? Or would another VS extension possibly suppress it?

August 1, 2011 6:24 PM
 

Rory Becker - DevExpress said:

@James Might I ask ....

...which version of CodeRush you are using? (10.2, 11.1)

...which edition (Pro vs Xpress)

...which version of studio (2008, 2010)

You see Tab To Next Reference is a feature that MS asked us to remove from CodeRush Xpress when running under VS2010.

I'm not privy to the exact reasoning for this, but If I had to guess, I'd say it was because they wanted to highlight their own Highlight References feature.

August 2, 2011 4:41 AM
 

James Foye said:

11.1.6 Pro

VS 2010

For some reason this has never worked for me on any machine I've installed Coderush on.

I can open a support incident, if you don't have an answer off the top of your head.

Thanks.

August 2, 2011 10:20 AM
 

Rory Becker - DevExpress said:

At this point, I think that would be best. Support are very skilled at puzzling these things out, and I wouldn't want you to go without this wonderful feature for any longer than necessary. :)

August 2, 2011 10:57 AM
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.