Code Like a Pro with ReSharper

Posted August 13, 2009 in Website Design & Development | Tech Tools
Tags: .NET

Have you ever felt like you need someone to look after your code so you can improve your coding style? Do you strive to write code that allows other developers to work on your project without hassle? Using ReSharper by Jet Brains, will make you feel as if you have your own personal C#/VB.NET trainer sitting beside you while you’re working.

Below I’ve outlined features of ReSharper that I've used and recommend:

Code Analysis & Suggestions

Out-of-the-box you will see a new column on the right (Marker Bar) that displays the status about whether the file or the solution contains any warnings, errors, or inefficiencies without having to compile.

Errors - ReSharper instantly inspects the compiler errors without having to compile.

Warnings - ReSharper displays warnings that guard against any serious coding inefficiencies or compile errors.

Suggestions - ReSharper will always present suggestions to improve your coding skills; sometimes it may feel like its overly suggestive, but this feature can always be customized. 

Code Refactoring

ReSharper provides a series of tools and methods far superior to the out-of-the-box Visual Studio features. It allows you to change the code structure without changing its external behavior. For example, if you change the filename of your class, ReSharper searches for all usage of the class and modifies every possible reference to reflect the change. 

Coding Assistance

ReSharper will auto-populate the namespaces when the type name doesn't get resolved. You can pick and choose the appropriate namespace or if there is only one, all you have to do is press "Alt+Enter", and then that namespace import directive will be inserted for you.  

Coding Cleanup

ReSharper allows you to optimize Namespace Import Directives, so you can easily see and remove the redundant import directives providing you cleaner and more readable code.

ReSharper also allows you to configure and share your coding style with your team members so the code will be more consistent while promoting easier site maintenance in the future.

That being said, these are just the main features that I use on a daily basis. You can check out the full feature set by downloading the 30 day free trial at JetBrains.com.

What do you think?  
Indicates a required field