.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 at 1:16 PM


comments powered by Disqus

Featured

  • VS Code Now Has Apple Silicon Builds for Native Mac Development

    Goodbye Rosetta, hello M1. Visual Studio Code has been updated with new builds that let it run natively on machines with Apple Silicon (M1), the company's own ARM64 chips.

  • Visual Studio 2019 for Mac v8.9 Ships with .NET 6 Preview 1 Support

    During its Ignite 2021 online event for IT pros and developers this week, Microsoft shipped Visual Studio 2019 for Mac v8.9, arriving with out-of-the-box support for .NET 6 Preview 1, which the company also released recently.

  • Analyst: TypeScript Now Firmly in Top 10 Echelon (Ruby, Not So Much)

    RedMonk analyst Stephen O'Grady believes TypeScript has achieved the rare feat of firmly ensconcing itself into the top 10 echelon of his ranking, now questioning how high it might go.

  • Black White Wave IMage

    Neural Regression Using PyTorch: Training

    The goal of a regression problem is to predict a single numeric value, for example, predicting the annual revenue of a new restaurant based on variables such as menu prices, number of tables, location and so on.

Upcoming Events