New CodeRush Plugin: CR_JumpToNamedMVCView

So a customer came to me with plugin request:

Customer: “I typically invoke my MVC razor views, by name, from within my controllers. Is there a plugin which can help me navigate to these views from the invocation?”

Me: “Not right now, No. Let me see what I can do”. *Challenge Accepted"*

And so I set off to create a new plugin to assist with this type of navigation.

A few hours later, the result is CR_JumpToNamedMVCView. A simple plugin which adds a single item (Named MVC View) to our Navigation SmartMenu (Ctrl+Alt+N)

Consider a very simple MVC CustomerController class.

JumpToNamedMVCViewCustomerControllerFull

The idea here is that you’re coding or reading through your controller and need to navigate to the view which you will be returning from a given action.

With this new plugin, you can now…

  • Place your caret on the name of the view… (in this case “List”)
  • Press Ctrl+Alt+N

JumpToNamedMVCViewCustomerControllerJumpToView

  • Select Named MVC View

JumpToNamedMVCViewCustomerListView

…and Voila! CodeRush delivers you to the view specified in the original call.

See this plugin’s Community Wiki page for even more detail, including how to assign this action to F12 for a more ‘Goto Definition’ approach

Hopefully this simple plugin will make your MVC coding, that little bit easier.

So now let’s see what develops.

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.