Questions tagged [resharper]

ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio versions since 2003.

ReSharper is a productivity tool for Visual Studio that aims to improve the developer experience. Providing additional features for error correction, code completion, navigation, search, syntax highlighting, formatting and cleanup, code generation and optimization, it carries out a large number of automated refactorings and streamlines unit testing using NUnit, MSTest, xUnit.net, MSpec (via plugin), amongst other features (all without the need to compile).

Current ReSharper releases support Visual Studio 2010-2019; previous versions supported Visual Studio 2003-2008.

ReSharper currently supports C#, VB.NET, ASP.NET, ASP.NET MVC, Razor, TypeScript, JavaScript, CSS, HTML, XML, XAML, MSBuild and NAnt build scripts.

ReSharper's functionality can be significantly extended with its Open API. In fact, most of ReSharper's features are implemented using this same API that is available in ReSharper plugins.

4908 questions
60
votes
8 answers

ReSharper breaks keyboard shortcuts for "Find" and "Find in Files"

I have been using ReSharper for some time and since I can remember every time I install Resharper, it's default keyboard shortcuts override Visual Studio's Ctrl + F and Ctrl + Shift + F for "Find" and "File in Files". It happend with R#3, 4, 5 in VS…
David Vidmar
  • 3,042
  • 6
  • 29
  • 35
60
votes
3 answers

Remove unused Usings across entire assembly

I am wondering if maybe ReSharper is able to run through every class and remove unused usings? I looked but I don't see an option like this in R# 4.5. Has anyone seen this in Resharper outside of just being able to remove usings in a single class?
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
59
votes
2 answers

Why does ReSharper suggest that I make type parameter T contravariant?

ReSharper suggests me to make type parameter T contravariant by changing this: interface IBusinessValidator where T: IEntity { void Validate(T entity); } Into this: interface IBusinessValidator where T: IEntity { void Validate(T…
Vu Nguyen
  • 3,605
  • 3
  • 22
  • 34
59
votes
3 answers

Resharper move line up down not working

I can't make it working, move line up or down doesn't work. When I reset keyboard for VS and applay scheme for Resharper it ask me for this : and if I take first selection , then alt + up switch me between methods, if I use second selection then…
kosnkov
  • 5,609
  • 13
  • 66
  • 107
59
votes
2 answers

Break lines and wrapping in auto formatting of Visual Studio with ReSharper

I'm working in a C# project and using Visual Studio 2012. When Visual Studio tries to format my code, it breaks lines and make my code look difficult to read. The original code (what looks pretty nice to read for me and my team): if (list.Any(x =>…
Felipe Oriani
  • 37,948
  • 19
  • 131
  • 194
58
votes
1 answer

Can ReSharper 7.x be used with VS2013 preview?

Can ReSharper 7.x be configured to work with Visual Studio 2013 preview? The preview version doesn't appear to allow it by default - though I only tested by repairing ReSharper, rather than uninstalling/reinstalling. I'm aware that ReSharper 8 is on…
SpaceBison
  • 3,704
  • 1
  • 30
  • 44
57
votes
21 answers

Visual Studio "Debug Unit Test" fails to hit breakpoints

When using Visual Studio 2008 and debugging my unit tests... sometimes the debugger works fine. However very often after modifying some code then clicking "Debug Unit Test" Visual Studio will fail to hit the breakpoints in the code. The debugger…
sym3tri
  • 3,747
  • 1
  • 29
  • 25
57
votes
3 answers

Resharper vs. Coderush - 2010 remake

Refer to this post for discussions on previous versions. Asking the question again since Visual Studio 2010 has been officially released. Does anyone have any visibility this early on as to which is better? What about any other products that may be…
TheHolyTerrah
  • 2,859
  • 3
  • 43
  • 50
57
votes
10 answers

Business Case for ReSharper

We are trying to get ReSharper introduced to our company but it would have to be for all developers. Management want us to justify the cost with a business case. I am unsure how to go about getting proof that ReSharper will benefit the business. …
Burt
  • 7,680
  • 18
  • 71
  • 127
57
votes
4 answers

Resharper 8 - Quickfix shortcut Alt+Enter gone

In Visual Studio 2012/2013, I want to reassign the Alt+Enter ↵ key combination to the "Quickfix" (triggering the menu from the light bulb) because it is not working anymore. I can't. I have tried the following (I am aware that some of the…
Olaf
  • 10,049
  • 8
  • 38
  • 54
57
votes
13 answers

Ambiguous references with the exact same namespace

The RC class is not linked to a database, it is a simple class. The class is at only one place and is not partial. The Aérochem.Domain dll project compiles just fine. Note: If I select one of the two identical namespaces in the quick fix menu, it…
Mathieu
  • 4,449
  • 7
  • 41
  • 60
56
votes
7 answers

ReSharper and var

Possible Duplicate: Why does ReSharper want to use 'var' for everything? I have ReSharper 4.5 and have found it invaluable so far but I have a concern; It seems to want to make every variable declaration implicit (var). As a relatively new…
Refracted Paladin
  • 12,096
  • 33
  • 123
  • 233
56
votes
3 answers

Using VS Code Snippets with Resharper

I am trying to use Code Contract's Code Snippets but since I turned Resharper back on it doesn't recognize them. On the other hand, it is recognizing some snippets I've implemented myself in the past. Any ideia of what might be the problem? I'm…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
54
votes
11 answers

Error when running unit tests in visual studio: Test-case objects missing

I'm getting the following error when running unit tests from visual studio using resharper: Test-case objects missing for the following elements: ... Rebuild the project and try again In the tooltip next to the unit test method it says:…
goku_da_master
  • 4,257
  • 1
  • 41
  • 43
54
votes
3 answers

Could string comparisons really differ based on culture when the string is guaranteed not to change?

I'm reading encrypted credentials/connection strings from a config file. Resharper tells me, "String.IndexOf(string) is culture-specific here" on this line: if (line.Contains("host=")) { _host = line.Substring(line.IndexOf( "host=") +…