- Sitecore has a very rich configuration surface, and it's good to be able to see what a setting does before you change it
- Things go wrong, and it's helpful to be able to figure out why.
- Sitecore code provides models for how to do things, both on the back-end, and in the client
Go to type (Control-T)
Control-T is the soul of ReSharper. With a couple of keystrokes, you can go to any class in your solution. Add to this nice bells and whistles like camel case interpretation (type "pfu" to jump to a class named PrintFormatUtility) and namespace interpretation (have a YourCompany.Library and a YourCompany.Web version of PrintFormatUtilty? Type "web pfu" or "li pfu" to disambiguate). In short, ReSharper lets you navigate your solution at the speed of thought.These features become all the more powerful when applied to an external library you are supporting. I discovered this a while back while doing research for a talk on Clones. Control-T "Sitecore clones" gave me a quick view of all classes that have "Clone" in the name:
Go to symbol (Alt-Shift-T)
Go to symbol does for properties and method names what Control-T does for classes, and the tool has the nice feature that you can switch from the one to the other without losing what is in your textbox. Here are some of the properties named Database in the Sitecore API, all a single click away.Go to definition (F12)
F12 ships with Visual Studio, but with ReSharper, this will take you from a reference in your project to the implementation in a referenced library, so a reference to Sitecore.Data.Items.Item will take you to the implementation.Go to usages (Control-Alt-Shift-F12)
Go to usages provides a breakdown of all uses of a class or member both in the library DLLs or in your solution. This one has a slightly more complex interface than the other commands, to allow you to fine tune your search, limiting it, for example, to library methods or your solution code:And here is the output:
No comments:
Post a Comment