Questions tagged [resharper-5.0]

Use this tag for version specific questions about ReSharper 5.0 - the refactoring and productivity extension for Visual Studio by JetBrains. When using this tag also include the more generic [resharper] tag where possible.

Here are highlights of some of the features in Resharper 5.0:

Code Analysis for C#
ReSharper analyzes and highlights errors in C# code (up to C# 4.0) while you type, without having to compile it first. It also helps you solve problems instantly, by suggesting quick-fixes for most errors. You can analyze your code both in a current file and throughout the entire solution. For example, in C# 3.0 Resharper will recommend using "var" for type initialization, or making a method static.

Coding Assistance
ReSharper extends and improves Visual Studio's native code completion. If you begin to use a namespace that isn't referenced, Resharper shows you a list of candidates and will automatically insert the appropriate using statement at the top of the class for you. It introduces color highlighting for fields, local variables, and types; transforms code using context actions; lets you move and duplicate blocks of code; auto-inserts brackets, parenthesis and quotes; shows concise documentation for types, type members and method parameters as pop-up tips, and more.

Code Cleanup
Code Cleanup enables you to run a dozen useful ReSharper features at once — specifically, reformat your code according to custom style settings, arrange usages of 'this' qualifier, remove code redundancies, convert properties with backup fields to auto-properties, make fields read-only if possible, optimize using directives, shorten qualified references, update file header, replace explicit types with vars, and revamp your code with many more settings.

Code Generation
ReSharper is smart enough to generate method stubs from usage, and feature-rich enough to provide special-purpose dialog boxes for creating constructors, read and write properties, and more. All these classy tools are readily accessible from a single pop-up window.

Code Templates
You can use a rich set of predefined code templates as well as define your own templates to automatically create loops, arrays, variables, method declarations, and a variety of other code constructs. File templates, 'surround with' templates and live templates for C#, VB.NET and XML let you choose the most convenient way of inserting a ready piece of code in any situation.

Navigation and Search
Whenever you need to find a certain type, field, method, or any other symbol, ReSharper provides you with a variety of ways to do it. You can find a symbol by name, navigate to a symbol declaration from its reference in code, or find and highlight symbol usages. ReSharper also allows you to thoroughly review type hierarchies and file structures, with its dedicated tool windows that are smartly integrated into Visual Studio user interface.

Refactoring
ReSharper provides a much wider set of automated code refactorings than Visual Studio. In total, 34 different refactorings are available.

Unit Testing
ReSharper automatically detects whether your project contains NUnit tests. It allows you to run and profile unit tests right from the code editor, shows the structure of tests in your solution, and provides you with a dedicated window where you can analyze test results and re-run unit tests. Support for other test frameworks (MbUnit, xUnit, MSTest) is available via third-party plugins.

47 questions
1
vote
3 answers

ReSharper 5.0 VS CodeRush 10.1 - Specific Feature Comparison

I'm deciding between ReSharper 5.0 VS CodeRush 10.1. I've seen a lot of questions that target which one is better/faster than the other. For Example, ReSharper may be a little slower than CodeRush when working with large projects. What I am…
Ryan Hayes
  • 5,290
  • 4
  • 42
  • 52
1
vote
1 answer

Do resharper 5 beta stop working?

I got message that the license expired to resharper 5 beta. I waited a few days but nothing was updated. Is anyone else got this message? In addition this post says that there is nightly builds. The question how can I get them. I there a public…
Fitzchak Yitzchaki
  • 9,095
  • 12
  • 56
  • 96
0
votes
1 answer

Disabling resharper errors through vs config

We are using resharper in our project, but based on our pattern and pratices we follow different naming conventions for classes,variables and so on. But we still need to use resharper, is there any configuration entry that we can make to disable…
Amit
  • 21
  • 6
0
votes
2 answers

Resharper 5 vs 6

Back when I had ReSharper 5 my files would have all kinds of syntax highlighting and a bar next to the scrollbar to the right. It was wonderful because it would highlight redundant imports and possible code smells, as well mark things in the bar…
0
votes
1 answer

How can I change the default create view code generated by resharper via the "View action list -> create view"

I am using Resharper 5, I like to create views by clicking on the red lightbulb then choose Create View from the action list (for example screenshot see https://i.stack.imgur.com/3CyEM.png). Does anyone know if there is a "Create View" template that…
0
votes
1 answer

using the ReSharper Tool with VS.NET IDE 2010 for code improvements

I am new to ReSharper and have integrated with Visual Studio 2010. I have found a suggestion in the code as follows, string query; query = "SELECT * FROM Employee"; The ReSharper tool asked me to change the above code to const string query =…
Saravanan
  • 7,637
  • 5
  • 41
  • 72
0
votes
2 answers

Full path name of the current file using the ReSharper open API

I am new to ReSharper and was trying to write some simple plugins. I wanted to try to get full path of the file I am currently using. Something like "C:\Project1\Firstfile.cs". If I am using "FirstFile.cs" in Visual Studio. I was planning to show…
Sachin
  • 155
  • 1
  • 8
0
votes
1 answer

Adding to ReSharper's 'Related Files' list

From version 5.0 onwards, ReSharper offers a "Go To Related Files" navigation which offers a list of files that R# thinks are related to the file currently being edited: for example, base types, derived types, .designer.cs to and from the relevant…
AakashM
  • 62,551
  • 17
  • 151
  • 186
0
votes
1 answer

How to use Resharper to localize XAML strings

I use Reshaper 5.1.1 to extract strings to resource files in my Silverlight app. I want to be able to extract strings in my XAML (like Content or Text properties) - but the Move option under Resharper is never enabled when I am viewing XAML. It does…
Rodney
  • 5,417
  • 7
  • 54
  • 98
0
votes
1 answer

How to make Resharper place blank lines after { in c#

Does anyone know how to make Resharper add blank lines after brackets when performing code cleanup? I want to make the following code if (x == y) { int a = x; int b = y; int z = a + b; } Look like this if (x == y) { int a = x; int b…
dretzlaff17
  • 1,699
  • 3
  • 19
  • 24
0
votes
1 answer

Resharper error

What does mean this Reasharper error? I just upload project from svn repository.
Neir0
  • 12,849
  • 28
  • 83
  • 139
0
votes
1 answer

How to tell ReSharper to use C# 2.0 spec in code issues?

I've begun using ReSharper and really enjoy it. However I have a project which must use C# 2.0 specs. Is there anyway to get ReSharper to base its suggestions off of the 2.0 spec? I keep getting these suggestions to convert things to var and to use…
chum of chance
  • 6,200
  • 10
  • 46
  • 74
0
votes
1 answer

Information about upgrading a Resharper plugin to v 5.0

I like the sound of the Exceptional plugin for resharper, but it says it currently only works with v4.5. Does anyone know what is involved with upgrading to 5.0 and how much things have changed, which bits will need to be looked at etc. I am quite…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
0
votes
1 answer

Resharper API development - Find Incoming calls

I am trying to make a program which will utilize resharper's "find incoming calls" feature. This is not a resharper plugin, but rather a console app (or similar) which finds the incoming calls to all properties on several particular types in my…
0
votes
1 answer

Using ReSharper 5.0 in VS 2010 web application project with Telerik controls

When using "Cleanup Code" function in ReSharper 5.0, code cleanup removes the aspx page line: Seems like an issue within ReSharper 5.0. Anyone else having the same issue. Thanks