navigation to MVC controllers without string literals

  Consider the controller below.  For Index2, a string literal is used to identify a view.  Using Resharper 5.0 I can navigate to the view Index from the "Index" string.  However, if I place the cursor within the View(VIEW_Index) expression, I seem to only be able to navigate to the literal.  Is there another navigation key available I could bind that would navigate to the view Index and not the property when used from View(VIEW_Index)?


    public SomeController : Controller {
    {
        public ViewResult Index()
        {
            return View(VIEW_Index);
        }

        public ViewResult Index2()
        {
            return View("Index");
        }

        private static readonly string VIEW_Index = "Index";
    }

1 comment
Comment actions Permalink

frank s wrote:

  Is there another navigation key available I could bind that would navigate to the view Index and not the property when used from View(VIEW_Index)?


Currently not. In plans http://youtrack.jetbrains.net/issue/RSRP-178694

0

Please sign in to leave a comment.