Click here to Skip to main content
15,885,914 members
Articles / Programming Languages / C#
Article

ReSharper 1.5: The Most Intelligent Add-In To Visual Studio .NET

17 Mar 20052 min read 82.9K   8   10
ReSharper is a VS.NET add-in with features such as intelligent coding assistance, on-the-fly error highlighting and quick error correction, unmatched support for code refactoring, and a whole lot more.

This article is in the Product Showcase section for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers.

Introduction

JetBrains ReSharper

ReSharper was created with the single purpose in mind: to increase the productivity of C# developers. It comes equipped with a rich set of features, such as intelligent coding assistance, on-the-fly error highlighting and quick error correction, unmatched support for code refactoring, and a whole lot more. ReSharper's tight integration with Visual Studio .NET provides quick and easy access to all of its advanced features right from the IDE.

ReSharper Key Features

Error Highlighting

<object id="demoEngin_ex_1" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="182" width="533" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="_cx" value="14102" /><param name="_cy" value="4815" /><param name="FlashVars" value="" /><param name="Movie" value="Jetbrainsresharper/demoEngin_ex_1.swf" /><param name="Src" value="Jetbrainsresharper/demoEngin_ex_1.swf" /><param name="WMode" value="Window" /><param name="Play" value="0" /><param name="Loop" value="-1" /><param name="Quality" value="High" /><param name="SAlign" value="" /><param name="Menu" value="-1" /><param name="Base" value="" /><param name="AllowScriptAccess" value="sameDomain" /><param name="Scale" value="NoScale" /><param name="DeviceFont" value="0" /><param name="EmbedMovie" value="0" /><param name="BGColor" value="FFFFFF" /><param name="SWRemote" value="" /><param name="MovieData" value="" /><param name="SeamlessTabbing" value="1" /> <embed src="/KB/showcase/JetBrainsReSharper/demoEngin_ex_1.swf" quality="best" scale="noscale" bgcolor="#ffffff" width="533" height="182" name="demoEngin_ex_1" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

One of the most powerful and helpful features in ReSharper is its ability to quickly detect and highlight errors in code, without the need to compile it. ReSharper automatically analyzes your code while you work and will highlight a variety of possible syntax or logical errors. It can also detect and emphasize statements or constructs that you should be warned about (e.g., unused or uninitialized variables).

More about this feature…

Error Quick-Fixes

<object id="demoEngin_ex_3" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="333" width="544" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="_cx" value="14393" /><param name="_cy" value="8811" /><param name="FlashVars" value="" /><param name="Movie" value="Jetbrainsresharper/demoEngin_ex_3.swf" /><param name="Src" value="Jetbrainsresharper/demoEngin_ex_3.swf" /><param name="WMode" value="Window" /><param name="Play" value="0" /><param name="Loop" value="-1" /><param name="Quality" value="High" /><param name="SAlign" value="" /><param name="Menu" value="-1" /><param name="Base" value="" /><param name="AllowScriptAccess" value="sameDomain" /><param name="Scale" value="NoScale" /><param name="DeviceFont" value="0" /><param name="EmbedMovie" value="0" /><param name="BGColor" value="FFFFFF" /><param name="SWRemote" value="" /><param name="MovieData" value="" /><param name="SeamlessTabbing" value="1" /> <embed src="/KB/showcase/JetBrainsReSharper/demoEngin_ex_3.swf" quality="best" scale="noscale" bgcolor="#ffffff" width="544" height="333" name="demoEngin_ex_3" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Not only does ReSharper highlight errors, but it also provides useful quick-fixes that enable you to instantly correct the code. When you place the caret on a highlighted error, if quick-fixes for this error are available, a small light-bulb icon pops up at the relevant line. Click it or use the Alt+Enter shortcut, to see the list of available quick-fixes. Select the desired quick-fix and press Enter to apply it.

More about this feature…

Refactoring Support

Refactoring can significantly improve your code design and efficiency. ReSharper's 17 automated refactoring support takes care of code consistency and compilability after even the most dramatic modifications.

ReSharper supports the following types of refactoring:

  • Rename symbol with reference correction
  • Move type to another namespace with reference correction
  • Move type declaration to a separate file
  • Change method signature (add/remove/reorder parameters, change parameter type or return type)
  • Extract method
  • Introduce variable
  • Inline variable
  • Convert method to property
  • Convert property to method(s)

More about this feature…

Live Templates

<object id="demoEngin_ex_2" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="225" width="533" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="_cx" value="14102" /><param name="_cy" value="5953" /><param name="FlashVars" value="" /><param name="Movie" value="Jetbrainsresharper/demoEngin_ex_2.swf" /><param name="Src" value="Jetbrainsresharper/demoEngin_ex_2.swf" /><param name="WMode" value="Window" /><param name="Play" value="0" /><param name="Loop" value="-1" /><param name="Quality" value="High" /><param name="SAlign" value="" /><param name="Menu" value="-1" /><param name="Base" value="" /><param name="AllowScriptAccess" value="sameDomain" /><param name="Scale" value="NoScale" /><param name="DeviceFont" value="0" /><param name="EmbedMovie" value="0" /><param name="BGColor" value="FFFFFF" /><param name="SWRemote" value="" /><param name="MovieData" value="" /><param name="SeamlessTabbing" value="1" /> <embed src="/KB/showcase/JetBrainsReSharper/demoEngin_ex_2.swf" quality="best" scale="noscale" bgcolor="#ffffff" width="533" height="225" name="demoEngin_ex_2" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Live templates represent predefined code fragments that can "interact" with the developer when inserted. You can use them to insert common or custom code constructs into a source code file quickly, efficiently, and accurately.

Just type a particular template's abbreviation, then press the Tab key to expand it into your source file.

More about this feature…

To get the full story on ReSharper’s feature set, please visit the Features page.

Why ReSharper

ReSharper makes C# development a real pleasure. It decreases the time you spend on routine, repetitive handwork, giving you more time to focus on the task at hand. Its robust set of features for automatic error-checking and code correction cuts development time and increases your efficiency. You'll find that ReSharper quickly pays back its cost in increased developer productivity and improved code quality.

The wait is over… ReSharper is here and now C# developers can experience what we mean when we say "Develop with pleasure!" Download a copy today!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Czech Republic Czech Republic
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
This is a Organisation (No members)


Comments and Discussions

 
GeneralPerformance Pin
Anonymous8-Mar-05 10:30
Anonymous8-Mar-05 10:30 
GeneralRe: Performance Pin
dchrno11-Mar-05 23:33
dchrno11-Mar-05 23:33 
GeneralRe: Performance Pin
Carlos H. Perez26-Mar-05 20:35
Carlos H. Perez26-Mar-05 20:35 
GeneralRe: Performance Pin
mknaup4-Apr-05 20:39
mknaup4-Apr-05 20:39 
AnswerRe: Performance Pin
Wizard_0129-Sep-05 4:46
Wizard_0129-Sep-05 4:46 
GeneralAdvertisement Pin
salsafyren214-Feb-05 1:21
salsafyren214-Feb-05 1:21 
GeneralRe: Advertisement Pin
Colin Angus Mackay14-Feb-05 1:56
Colin Angus Mackay14-Feb-05 1:56 
GeneralRe: Advertisement Pin
limean21-Feb-05 1:42
limean21-Feb-05 1:42 
GeneralRe: Advertisement Pin
Amhed Herrera19-Mar-05 4:58
Amhed Herrera19-Mar-05 4:58 
GeneralRe: Advertisement Pin
The Bug20-Mar-05 7:30
The Bug20-Mar-05 7:30 

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.