Blogs

Rory Becker - DevExpress CodeRush Blog

Tab through Primitives for CodeRush

     

Introducing CR_PrimitiveTab. The result of another CodeRush Feature Workshop

This plugin extends Tab to Next Reference, allow you to navigate among references to primitives, of the same value, in the same file.

For example: If you place your caret on the number 10 within a code file, and then hit the Tab key, you will immediately begin tabbing through all the other instances of the number 10 within that file.

TabToNextPrimitive

The same will also works for strings, dates, floats and other primitive values.

This is a great way to get a feel for how many instances of a given literal are referenced, and under what circumstances. It’s a useful scouting tool. Useful just prior to the introduction of a constant or just as a way to navigate to something similar in the same file.

A Small Reconfiguration
Due to the way the current version of Tab to Next Reference works internally, it will be necessary to perform some small reconfiguration of the settings, in order for this plugin to work.
You will need to add the Editor\Code\InPrimitive context to the Shift+Tab, Tab, and Shift+Alt+U. These bindings can be found in the Navigation\References\Nav Fields folder of the Shortcuts Options Page.

We are hoping to address the need for this tweak in a future version of CodeRush.

So what are you waiting for? Go grab this amazing new feature from the Community Site.

Be sure to keep an eye out for more CodeRush Feature Workshops

Published Jul 25 2011, 07:52 PM by Rory Becker - DevExpress
Bookmark and Share

Comments

 

Johnny K said:

wow! cool!

but how will it work if i tab stop at the second for exmple tab (10) and change it to 22, then TAB again! will it continue to the next 10 because i may want to change it to something else? or will try to find the next 22????

this can be improved if is not supported! to have an option on how you want to react ;-)

although i love those plugins, they are really slugging my visual studio sometimes! :(

July 29, 2011 3:35 PM
 

Rory Becker - DevExpress said:

Tab to Next Reference is an exploratory tool.

If you change the nature of what you are exploring as you go, then you will break break any links established

If you are seeking to have this functionality changed, I suspect you would need to request it for the TTNR engine as a whole. This is best done via Support

Additionally, if you are experiencing *any* performance issue, you should contact support.

August 1, 2011 5:33 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.