.NET Tips and Tricks

Blog archive

Navigating in ReSharper

In our August issue, we reviewed JetBrains ReSharper (Two Productivity Tools for Visual Studio 2010). I had to be careful because I was testing ReSharper in Visual Studio 2010, which is so new there was a real danger that I could mistake some cool new feature in Visual Studio for something that ReSharper has given me.

I could stick with what I know is supplied by ReSharper. My favorite feature of the tool is still present: if I type in the name of a class that I don't have a namespace for, ReSharper will volunteer to write out the Imports/using statement for me. Love that.

But, since I was reviewing the new version, I made sure to look at the new stuff. For instance, as an ASP.NET developer, I appreciate the new navigation feature that links Master Pages to content pages: I can right-mouse click in an aspx file, pick Edit Master and go directly to the Master Page for the content page I'm editing.

Wait: That's Visual Studio doing that.

What ReSharper offers is actually much better. From the popup menu, I can select Navigate | Related Files and get a popup box of all the files related to my current aspx file. That includes, the Master Page (of course), the code file, any ascx files on the page, any related style sheets, and more. That navigation box is so useful that I might actually learn the related shortcut key.

Equally useful is the ability to follow a variable's value through my application. I can select any variable, right-mouse click and select Inspect | Value Origin. That gives me a list of every place that the variable is set and what the variable is set to. Clicking on an entry in the list takes me to that line. When I'm trying to figure out where and how a variable is used, this navigation tool will be invaluable. In fact, as with any new tool, the biggest problem is going to be remembering that this tool is available.

Posted by Peter Vogel on 08/18/2010


comments powered by Disqus

Featured

  • Full Stack Hands-On Development with .NET

    In the fast-paced realm of modern software development, proficiency across a full stack of technologies is not just beneficial, it's essential. Microsoft has an entire stack of open source development components in its .NET platform (formerly known as .NET Core) that can be used to build an end-to-end set of applications.

  • .NET-Centric Uno Platform Debuts 'Single Project' for 9 Targets

    "We've reduced the complexity of project files and eliminated the need for explicit NuGet package references, separate project libraries, or 'shared' projects."

  • Creating Reactive Applications in .NET

    In modern applications, data is being retrieved in asynchronous, real-time streams, as traditional pull requests where the clients asks for data from the server are becoming a thing of the past.

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

Subscribe on YouTube