New Hierarchical Views in ReSharper 7
Hierarchical representations are a great way to quickly view the relationships between different structures, and in ReSharper 7 we’ve got two new ways of looking at hierarchies of interrelated entities.
If a hierarchy has a polymorphic type member, it’s often useful to know the types where the member is implemented, and where it’s not. ReSharper now supports this scenario: all you have to do is, with the polymorphic member selected, open up the hierarchies view. This can be done either by pressing Ctrl+E,H or by opening the Inspect This menu using Ctrl+Shift+Alt+A and selecting Hierarchies:
ReSharper will then display the following window:
In the above, notice that some elements’ icons are full-color whereas other ones are dimmed. The full-color elements indicate the types where the
Text member from above is in fact implemented, whereas the dimmed icons indicate types where
Text is not implemented.
CSS Style Hierarchy
When working with Cascading Style Sheets, one common pattern is to nest styles, specifying more and more precise attribute the deeper you go. And, once again, ReSharper is here to help: by opening up the Hierarchy browser (via the same mechanism as for Member Hierarchy), you will be presented with the following window:
On the left-hand side you can see the style hierarchy starting from the most general down to the most specific. The Hierarchy window also provides a preview pane, so by selecting each of the elements in the tree you can see immediately the code block it corresponds to.
Both of the features described here have been designed to make complex structures easier to understand and navigate. We hope you find them useful!
Subscribe to Blog updates
Thanks, we've got you!
Eager, Lazy and Explicit Loading with Entity Framework Core
Entity Framework Core (EF Core) supports a number of ways to load related data. There’s eager loading, lazy loading, and explicit loading. Each of these approaches have their own advantages and drawbacks. In this post, let’s have a quick look at each of these ways to load data for navigational prope…
OSS Power-Ups: bUnit – Webinar Recording
The recording of our webinar, OSS Power-Ups: bUnit, with Egil Hansen and Steven Giesel, is available. This was the twelfth episode of our OSS Power-Ups series, where we put a spotlight on open-source .NET projects. Subscribe to our community newsletter to receive notifications about future webi…
Accelerating Your Testing Workflow with Unit Test Creation and Navigation
Unit tests play an important role in our daily development workflow. They help us ensure our codebase's correctness when writing new functionality or performing refactorings to improve readability and maintainability. In the process, we often create new test files that accompany the p…
Introducing Predictive Debugging: A Game-Changing Look into the Future
With the introduction of debugging tools, software developers were empowered to interactively investigate the control flow of software programs to find bugs in live environments. At JetBrains, we've always strived to improve the art of debugging. Besides the more standard things you expect from a de…