Blogs

Rory Becker - DevExpress CodeRush Blog

CodeRush Tip – Enhance Studio’s Find command.

     

“How can I easily return to where I started having used Visual Studio’s find command to locate something?”

One way of achieving this is….

  • Drop a marker (Alt+Home) before you perform your search.
  • Hit Esc to return to the marker when you’re finished looking around.

However that’s a lot to remember to do, so why not have CodeRush automate a little more for you.

  • Create a new shortcut (Details here)
  • Set key 1 to Ctrl+F
  • Set command to MarkerDrop
  • Check the checkbox that says “after executing this command, pass shortcut to IDE for default handling
  • Set context to Focus\Documents\Source\Code Editor
  • Click Ok

CodeRush should now drop a marker whenever you bring up the Find Dialog. which means you only have to remember to hit Esc to collect them.

Bonus marker facts

  • Markers are stored in a stack formation so that they leave a sort of trail of breadcrumbs.
  • Each successive press of Alt+Home adds a marker to the top of the stack.
  • Pressing Esc “Collects” a marker, removing it from the top of the stack and navigating you to the location it represents.
  • Collecting a marker doesn’t just restore you to the position in the file it represents, it also restores the view and selection.
  • Markers are also removed from the stack when the files they refer to are closed.
Published Apr 12 2011, 11:30 AM by Rory Becker - DevExpress
Bookmark and Share

Comments

 

Adam Lonsdale. said:

Lifesaver! Thank you so much for pointing this out, will save a huge amount of time (:

April 12, 2011 9:11 AM
 

Graeme Ross said:

Gold

April 13, 2011 6:34 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.