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
53
votes
5 answers

Resharper (Find and) fix all issues at once

e.g. alt enter -> context menu -> Find all 'Redundant name qualifier' issues -> but now in the new window that lists all those issues in my project, is there a way to fix them all ? (rather than go through them individualy) ta.
Cel
  • 6,467
  • 8
  • 75
  • 110
53
votes
6 answers

TODO comment font color in VS2010 with ReSharper and Productivity Power Tools

I just installed the Productivity Power Tools for Visual Studio 2010. I also have ReSharper installed. Prior to the PowerTools installation, my TODO comments (i.e. // TODO: Do Something) were showing up in the code using the font listed under VS…
Joe Enos
  • 39,478
  • 11
  • 80
  • 136
53
votes
4 answers

ReSharper conventions for names of event handlers

When I add new event handler for any event, VS creates method like object_Click. But ReSharper underlines this method as Warning, because all methods should not have any delimeters such as "_". How can I customize rules of ReSharper so that it…
Pavel Belousov
  • 1,848
  • 2
  • 14
  • 22
52
votes
7 answers

ReSharper - Possible Null Assignment when using Microsoft.Contracts

Is there any way to indicate to ReSharper that a null reference won't occur because of Design-by-Contract Requires checking? For example, the following code will raise the warning (Possible 'null' assignment to entity marked with 'NotNull'…
52
votes
7 answers

A tool like ReSharper, but for Java?

I have read a lot about ReSharper on here. It sounds like it has a lot of cool features to help the programmer out. Trouble is, I don't write C#. Is there any tool that has similar functionality to ReSharper, but for Java instead? Thank you!
eleven81
  • 6,301
  • 11
  • 37
  • 48
52
votes
3 answers

Code is heuristically unreachable

What does this mean in contrast to "unreachable code detected"?
bevacqua
  • 47,502
  • 56
  • 171
  • 285
51
votes
5 answers

Resharper Keyboard shortcut Go to next issue and display and fix issue?

Is there a keyboard shortcut to use in ReSharper to see suggestions and apply them? When I inspect code issues in a Solution, I find it slow to use the mouse to move from one issue/recommendation to the next, and see each suggestion. I'd like to…
user467058
51
votes
3 answers

Hitting Tab in Visual Studio selects block instead of adding indentation

I am using Visual Studio 2015 and ReSharper 2016.2 and I have this strange behavior, that I probably activated (accidentally). When having the cursor in a line before the first word, hitting the Tab-key indents the line correctly: When the cursor…
Alexander Pacha
  • 9,187
  • 3
  • 68
  • 108
51
votes
10 answers

Code editor appears blank

I was using ReSharper with visual studio 2015 and my pc got really slow because of ReSharper and i had to uninstall it. After uninstallation completed when i opened up my project the only thing i saw was a blank screen like this. I know that…
Arefi Clayton
  • 841
  • 2
  • 10
  • 19
51
votes
6 answers

How to tell ReSharper to sort usings with system namespaces NOT at the top?

Visual Studio has an option to place system directives at the top when sorting them. When this setting is unchecked, sorting using statements by right-clicking on them and using the Organize Usings feature, places System namespaces alphabetically…
Matt Johnson-Pint
  • 230,703
  • 74
  • 448
  • 575
50
votes
4 answers

Resharper, Javascript: "Use of implicitly declared global variable 'X'"

I'm using Resharper 6 and ASP.NET Web Methods and have an irritating warning in my Javascript files: "Use of implicitly declared global variable 'X'" The reason is that the web method is created in Javascript as: new X.example().webMethod(arg1,…
rythos42
  • 1,217
  • 2
  • 11
  • 27
50
votes
3 answers

Using WPF components in NUnit tests - how to use STA?

I need to use some WPF components in an NUnit unit test. I run the test through ReSharper, and it fails with the following error when using the WPF object: System.InvalidOperationException: The calling thread must be STA, because many UI components…
stiank81
  • 25,418
  • 43
  • 131
  • 202
50
votes
3 answers

Completely Disable Formatting and Completion in ReSharper for Visual Studio

I like a lot of the features that ReSharper offers, but I absolutely can't stand the formatting and code completion it does. It trips me up every step of the way. In javascript it's constantly stealing braces attempting to reformat my code making…
50
votes
3 answers

How to remap the Ctrl+Click "Go To Definition" short-key in the Productivity Power Tools (or maybe ReSharper)

I love the Productivity Power Tools extension for visual studio, however it has added the Ctrl+Click "Go To Definition" functionality, which is great and all, but my workflow makes me use the functionality when I don't want it. When I want to copy…
49
votes
4 answers

Resharper - is it possible to go to method's implementation on CTRL-click instead of going to declaration?

if I do CTRL-click on method's name in VS2012 with Resharper 8, I'm redirected to the method's "declaration" - and that's quite inconvenient if I have lots of interfaces in my project. If it possible to configure resharper to go right to the…
avs099
  • 10,937
  • 6
  • 60
  • 110