Click here to Skip to main content
15,878,809 members
Articles / All Topics
Technical Blog

3 Reasons Why I Love ReSharper

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
4 Aug 2013CPOL3 min read 10.9K   1   1
Here, I list three reasons why I love ReSharper

Introduction

ReSharper is a renowned productivity tool developed by JetBrains that makes Microsoft Visual Studio a much better IDE. It brings smart C# code analysis, editing, highlighting and refactoring features to .NET developers. ReSharper extends much of its support to VB.NET, build scripts, ASP.NET, XML, and XAML files. All features are available in mixed solutions where different projects use .NET Framework, .NET Compact Framework, Silverlight, as well as other frameworks and tools from the Visual Studio ecosystem.

I have hardly ever used an add-on with Visual Studio while using it more than decade or so. I never felt an urge to use one and always believed that Visual Studio is one of the best IDEs present in the market, in fact it is. Fortunately or unfortunately, our team decided to throw away the (outdated and self-proclaimed) coding standard we were using. This led to a search to find a better tool which can help as a team in doing so. ReSharper came as one of the top search results in Google. Not sure because of relevance or as a sponsored result, but that’s a different story.

Having said so, I have been using this add-on (trail version) for almost three weeks now and simply cannot believe how I managed to do without. It is certainly addictive. Apart from all the features JetBrains has listed on their website, here are 3 reasons why I love ReSharper:

  • Conventions: One of the most striking and handy features. As a developer, I don’t really have to bother and remember the naming conventions. ReSharper helps me and signals any deviation as I type my code. This means, no longer I have to create lengthy documents and indoctrinate new programmers about the conventions we use as a team.
    A definite PLUS while doing code reviews. All those deviations should have already been taken care of by the developer himself and if not it will just strike through immediately while you are at it.
  • Code Editing Helpers: Another magical feature. I had this project where someone had written a NICE nested foreach loop. I noticed that ReSharper had few suggestions to it. It suggested that a better Linq statement can be used instead of loop. And not only has it suggested, it does it for you. Pretty handy as feature even if you want to learn new, better ways and syntax to write code.
  • Code Smells: This is how they market the feature. But it really works. ReSharper can tell you if there is a possible NULL reference exception. Very handy when you have a lot of junior developers working on the team. This is one of those scenarios which is most likely to happen if the developer has made an assumption on his own.

Apart from that, here are my general observations:

Good

  • Suggests good coding practices as we type
  • Good refactoring support
  • Supports XML files also for refactoring

Bad

  • Seems to take a lot of resources

Features Personally Liked

  • Greys out unused using statements and variables in the editor
  • Suggestions to convert string literals to constants when used with hard coded values
  • Suggests naming conventions for namespaces, variables, etc.
  • Suggestions to change the scope of variables to inner most code block
  • Suggestion to use object initializers
  • Suggestions for possible exceptions in code
  • and a lot more

The post 3 reasons why I love ReSharper appeared first on Manas Bhardwaj's stream.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Netherlands Netherlands

Read my personal blog at www.manasbhardwaj.net.


Comments and Discussions

 
BugReSharper is unreliable Pin
MrWhiteboard27-Sep-13 4:02
MrWhiteboard27-Sep-13 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.