Rory Becker - DevExpress CodeRush Blog

August 2012 - Posts

  • 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.

LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners