Use this tag for version specific questions about ReSharper 9.2 - the refactoring and productivity extension for Visual Studio by JetBrains. When using this tag also include the more generic [resharper] tag where possible.
Questions tagged [resharper-9.2]
10 questions
28
votes
2 answers
Prevent ReSharper from formatting specific code block
Is there a way to prevent ReSharper from formatting a specific code block in a file? Something like:
void MyMethod ()
{
// ReSharper disable formatting
PRE = { my top format } /* no rules */ ;
// ReSharper enable formatting
}

D.R.
- 20,268
- 21
- 102
- 205
17
votes
1 answer
Does Visual Studio 2015 have a Resharper Equivalent to CTRL+T fast object find?
Does anyone know? I am finding that Resharper 9.2 is very buggy with testing and burping. But the funny thing is that I use Resharper the most for a little function of CTRL + T. It brings up a quick find where you type and it in real time…

djangojazz
- 14,131
- 10
- 56
- 94
11
votes
3 answers
Resharper - Disable 'help' when using "prop" shortcut in C#
I'm getting quite annoyed with a feature of Resharper that I just cannot find how to disable independently.
With Resharper turned off, whenever I type prop in VS2015 and press TAB, I get the following auto-generated code:
public int MyProperty {…

Sk93
- 3,676
- 3
- 37
- 67
6
votes
1 answer
ReSharper 9.2 produces warning for nameof with event name
According to the C# specification this is valid code, and it compiles and runs.
var myObj = new MyClass();
var x = nameof(myObj.SomeEvent);
Console.Write(x); // Prints 'SomeEvent'
where SomeEvent is:
public event EventHandler SomeEvent;
But…

Rob Kent
- 5,183
- 4
- 33
- 54
5
votes
2 answers
Why *doesn't* ReSharper tell me “implicitly captured closure”?
This question and its answers explain the concept of implicitly captured closures very well. However, I occasionally see code that seems like it should generate the warning in question that in fact does not. For example:
public static void F()
{
…

dlf
- 9,045
- 4
- 32
- 58
1
vote
1 answer
ReSharper autocompletion bug? with lambda scratch arguments
I'm using ReSharper 9.2. Example code:
class Foo
{
private int _someField;
private int _someOtherField;
public Foo()
{
Action a = (_, __) => { };
}
}
As soon as I type type the ',' after the '_', R# decides I must…

dlf
- 9,045
- 4
- 32
- 58
1
vote
3 answers
C#, Resharper, "Possible 'null' assignment to entity" warning when it shouldn't be
I have a method that turns string.IsNullOrWhiteSpace(string value) into an extension method.
public static bool IsNullOrWhitespace(this string source)
{
return string.IsNullOrWhiteSpace(source);
}
After I use this to check for null, Resharper…

jack
- 303
- 3
- 12
0
votes
0 answers
Why does Resharper 9 clear indentation on closing curly braces?
I'm trying to get Resharper 9.x to reformat my C++/CLI code automatically on Visual Studio 2015 Enterprise. However, I came across this case which doesn't seem to make sense:
The following code:
namespace MyNamespace
{
public ref class MyClass
…

Axel Magagnini
- 855
- 1
- 8
- 19
0
votes
2 answers
What does Resharper have against the commonly-used getRange() in Excel Interop?
Almost all of the example code online for C# Excel interop has stuff like this:
monthlyChartRange = _xlSheetChart.get_Range("A3", "C4");
Yet, Resharper turns up its nose at it and demands: "Use indexed property" If you accede to its wishes (and I…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862
0
votes
1 answer
Is Resharper confused by Aliases used for Assemblies in Using directives?
I noticed this in my .cs file, which looks like I might be "mixing metaphors" or at least being redundant by having both "Microsoft.Office.Interop" and "Microsoft.Office.Interop.Excel" in my list of usings directives:
using…

B. Clay Shannon-B. Crow Raven
- 8,547
- 144
- 472
- 862