

I tend to navigate more with F12 and Shift+F12, but zipping down the methods a class comes in handy from time to time. If a method is called only once, for instance, ReSharper goes right to the callee without popping up any dialogs. Visual Studio has the ability to find usages of a method, but it pretty much sucks. I use it constantly if I've just navigated to a method to peek and I want to return back to where I was. Technically, a Visual Studio shortcut, but it's so awesome I just had to list it. Even if you're a keyboard person (like me), this shortcut comes in handy from time to time. ReSharper adds the ability to hold the control key and hyperlink into a method with a click of the mouse. Navigate To (F12/Ctrl-Click)į12 to navigate into a method is nothing new. This test running alternative is fantastic for when you're working on a single unit test and need to keep running it as you make small changes. I've switched to NCrunch for running tests, but if you aren't so lucky Ctrl+U, R is super handy for running all tests in the solution.
Resharper 9 code#
For instance, if you have:Ĭopy Code var logFileExists = !FileInputOutput.Exists(fileName) When you switch back to refactor mode after an intense quick-and-dirty coding session, extracting literals or variables is awesome. I use extract variable almost with the frequency of Rename. Just put the cursor on the class name and hit Alt+Enter+Enter. This is fabulous when you're in quick-and-dirty problem solving mode, throw a new class in the same file, but want to fix it when you switch back to refactor mode. For classes, there's a modal dialog that even allows you to synchronize the file name. For methods, there's a quick modal dialog. For local variables, it works by renaming all usages inline. It works differently in different contexts. I use this so often it's become muscle memory and I nearly had to look it up. Need to get to the TrippleDesStringEncryptor quickly? Ctrl+T then type the capital letters "TDSE" and enter. So why not make a blog post while I'm at it? I've been collecting my favorite tips for years now anyway.
Resharper 9 free#
Get five horizontal, vertical, or diagonal shortcuts when mentioned, yell BINGO, get a prize ( Siren of Shame mug anyone? :) ).įive tips times five tips minus a free spot = 24 tips. To keep the talk interesting, I thought it would be fun to incorporate a game of Bingo with ReSharper shortcuts. So next week, I'm doing a ReSharper presentation. In evangelizing it, I managed to convince my program to purchase copies for every developer. NET since Visual Studio (NCrunch is a close second). I firmly believe ReSharper is the best thing to happen to.
