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.

2 comment(s)
Kevin McFarlane
Kevin McFarlane

Hi Rory, it doesn't seem to work for me in 13.1.5.0. No menu item appears. Plugin appears to be fine in Plugin Manager.

13 August, 2013
Rory Becker (DevExpress)
Rory Becker (DevExpress)

Sounds like something about your start context doesn't match the requirements of the plugin. Let's continue this over on your original bug report.

23 August, 2013

Please login or register to post comments.