views:

978

answers:

14

My whole department has owned individual copies of ReSharper for about a year, but I find I'm one of only two people that actually use any of its features regularly. I'm trying to get everybody to use it more effectively and would like opinions on the most useful features and their shortcuts so I can share more than just what I use it for.

So what's your single favorite feature and its keyboard shortcut for ReSharper?

+2  A: 

Introduce variable.

minty
+1  A: 

I like the way NUnit integration is done, with the little green bubbles next to each test.

Ben Hoffstein
+10  A: 

Generate Code - Alt + Insert - fantastic feature.

This blog series is an invaluable reference for people starting with ReSharper as well.

Chris Ballard
Thanks for the link to the blog, I'll have to read through that.
phloopy
+7  A: 

Extract Method (Ctrl + Alt + M)

One of the most important types of refactoring. Makes your code so much more readable and maintainable. No need to write a comment about a block of code when you can encapsulate it in a intent revealing method name.

Ray Vega
+5  A: 

Rename (F2)

Also, here's a tip to get everyone using the shortcuts rather than the mouse... unplug their mouse! A bit extreme I know, but you can always print out the cheat sheet.

andypike
A cheat sheet, awesome (:
phloopy
Ctrl+R+R works as well, more keys, but somehow I get these quicker and the key is intuitive (R for Rename)
Simpzon
A: 

I use Live Templates all the time.

+6  A: 

Find Usage (Alt-F7)

jop
+6  A: 

CamelHumps - for example, when typing Console.WriteLine(), you just need to hit W and L to find the WriteLine method in Intellisense list.

petr k.
Very useful feature that I wasn't even aware of before, thanks!
phloopy
Thanks! I always forget about this feature...
Mitch Wheat
+1 for the CamelHump.
Metro Smurf
A: 

Powerful refactoring and the auto-layout feature.

Trap
A: 

I Like 'Go to Inheritor' (Ctrl+Alt+B) when navigating code with liberal Interface use.

Mitch Wheat
+4  A: 

Cleanup Code (CTRL + ALT + F)

David Moore
This one kept getting a team member into trouble on a project; be careful if your in-house standards are different to Resharper's formmating rules!
Mitch Wheat
A: 

Cleanup Code, Insert Constructor (alt-ins), convert delegate to lambda (I'm still getting my head around that particular C# feature a bit), Find Usages.

Code analysis is also a huge feature for me -- it's saved me a lot of time since it reports compilation errors before they happen and I work on a few projects that are slow to compile.

Optimize Usages was and still is a favorite, but that's less critical now that Visual Studio itself includes it as a refactoring.

David
+3  A: 

Mine is Highlight Usages (Alt+Shift+F11 in VS keymap), it is making it easier to keep track of member usage in a single file with different colors for reads, writes and declarations.

idursun
OMG! You just made my day!
orip
Is there a way to make highlighting the default behavior when you select a member like in Eclipse?
Greg
@Greg, I don't think so.
idursun
Man!! I was trying to find something like this during weeks!
Luís Custódio
+2  A: 

I love go to type and go to file (Ctrl n / Ctrl Shift n ) (or if you use the Visual Studio scheme Ctrl t / Ctrl Shift t). I'm sure that feature alone saves me 30 minutes every day.

AndreasKnudsen