

The arrows show where it’s getting all the info from (and there are additional popups that didn’t get captured like the tooltip explaining the refactoring). Here it’s asking me if I want to do an Extract Method refactoring, using the HtmlWriter parameter and a local variable as parameters to the new method. When you select a line there are different options. Personally I think creating a variable once and using it (as long as the variable has a good name) works better and is it just me or isn’t calling a method 3 times rather than referencing a variable is more expensive? Okay, we’re talking about milliseconds here, but sometimes every line of code counts. The idea is that instead of doing this:ġ05 // Both LayoutsDir and StyleSheet specifiedġ08 .ToString(), LayoutsDir, StyleSheet) ġ12 // LayoutsDir but no stylesheet (kind of useless though)ġ15 .ToString(), LayoutsDir) Here’s one that I’m mixed on using, Inline Temp (or mixed on, using Inline Temp if you prefer). There’s a nice little animation that is displayed when you hover over a return statement that shows where it returns to (makes for visibility of the code you’re about to skip that much more potent).

Here’s a few that I like which gave me the swing vote for the product.

It’s the same price point ($99USD) so anything it offers above ReSharper is just icing on the cake. Refactor! Pro has a nice set of features that take it above what ReSharper offers. Scott Hanselman is big fan of CodeRush and the DevExpress products and they have a refactoring tool called Refactor! Pro (and hey, if Scott likes it then it must be good right?). So I thought about looking at other options. Their VS2005 product isn’t final yet, many people (including myself) have tried it but then uninstalled it when your stable IDE becomes unstable. I use ReSharper from JetBrains, but lately they’ve been a little lax with updates. However it’s always hard to tell what the right refactoring is and when it should be applied. Little tweaks make things easier to read and generally make my code more maintainable. I’m always looking for ways to better my codebase and refactoring is a technique that I employ all the time. Like most of us, we spend most of our waking day inside an IDE writing and designing so we want the best use of our tools that we use.
