tagged [resharper]

Use ReSharper to arrange members in the same order as implemented interface

Use ReSharper to arrange members in the same order as implemented interface Is it possible to use the Type Layout feature of ReSharper to sort the members that implements an interface in the same orde...

12 Sep at 16:59

How to stop Resharper from line breaking after return keyword for long lines?

How to stop Resharper from line breaking after return keyword for long lines? When I auto format with Resharper CTRL + ALT + SHIFT + F for lines longer than max line length (in my case say it's 80 cha...

13 Dec at 03:52

ReSharper run all unit tests in a project or solution at once

ReSharper run all unit tests in a project or solution at once I am inside the IDE and I can run all the unit tests in a file but is there any way to run all test in a project or solution at once?

9 Oct at 10:51

Transfer all ReSharper Settings between PCs

Transfer all ReSharper Settings between PCs I was wondering if there is a way to copy ALL my settings from ReSharper (including the StyleCop for ReSharper settings and the keyboard bindings I have set...

19 May at 23:2

ReSharper complains when method can be static, but isn't

ReSharper complains when method can be static, but isn't Why does ReSharper complain when a method can become static, but is not? Is it because only one instance of a static method is created (on the ...

28 Aug at 10:56

Impure method is called for readonly field

Impure method is called for readonly field I'm using + and it shows a warning on the following code: `rect` is a `readonly Rectangle` field, and ReSharper shows me this warning: > "Impure Method is ca...

4 Mar at 00:14

Resharper gotchas

Resharper gotchas i absolutely adore ReSharper and would not work without it, but there are a few gotchas that i have run into and learned to avoid: - - Those are my biggies. What else is out there th...

1 Sep at 17:55

how to navigate to pasted stack trace visual-studio

how to navigate to pasted stack trace visual-studio I remember I used to navigate to pasted stack trace by clicking `ctrl + E + T` is it a resharper utility? What's the build in equivalent for visual ...

String Interpolation vs String.Format

String Interpolation vs String.Format Is there a noticeable performance difference between using string interpolation: vs String.Format()? I am only asking because ReSharper is prompting the fix, and ...

Resharper- Find all unused classes

Resharper- Find all unused classes I know how to find unused references of a single file by right clicking on the file and selecting the "Find Usages" option. Is there any way I can see or get the lis...

10 Jan at 20:14

C# @ modifier for methods parameters

C# @ modifier for methods parameters I was using ReSharper plugin on VS2010 and i was generating an interface method. ReSharper put an @ on the parameter name. WHat is that used for? Whats the differe...

8 Nov at 14:0

"Simplify conditional ternary expression"

"Simplify conditional ternary expression" Resharper tells me to `Simplify conditional ternary expression`. But I feel like a null check is necessary here, since `FirstOrDefault()` can return null. So,...

31 Jan at 10:28

Collapse ALL #region in Visual Studio 2012

Collapse ALL #region in Visual Studio 2012 First of all, no , is not the answer. For me, this is collapsing #Region, ///Comments, and Methods and I hate that. I'd like to collapse/expand ONLY `#region...

10 Apr at 19:37

Can ReSharper be set to warn if IDisposable not handled correctly?

Can ReSharper be set to warn if IDisposable not handled correctly? Is there a setting in ReSharper 4 (or even Visual Studio itself...) that forces a warning if I forget to wrap code in a `using` block...

19 Apr at 10:1

Method can be made static, but should it?

Method can be made static, but should it? ReSharper likes to point out multiple functions per ASP.NET page that could be made static. Does it help me if I do make them static? Should I make them stati...

How can I disable ReSharper in Visual Studio and enable it again?

How can I disable ReSharper in Visual Studio and enable it again? I installed [ReSharper](http://en.wikipedia.org/wiki/ReSharper), and it works in Visual Studio, but how can I disable it? Whenever I s...

autoformat code from command line

autoformat code from command line Is it possible to run auto-format code for all or for specific file in solution, like (Ctrl+K, Ctrl+D) formatting in Visual Studio but from it`s command line? Or use ...

How do I find and remove unused classes to cleanup my code?

How do I find and remove unused classes to cleanup my code? Is there a quick way to detect classes in my application that are never used? I have just taken over a project and I am trying to do some cl...

21 Dec at 14:1

Resharper (Find and) fix all issues at once

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 ther...

Should I *always* favour implictly typed local variables in C# 3.0?

Should I *always* favour implictly typed local variables in C# 3.0? [Resharper](http://resharper.blogspot.com/2008/03/varification-using-implicitly-typed.html) certainly thinks so, and out of the box ...

15 Jul at 12:54

How to stop ReSharper removing spaces in object initializer

How to stop ReSharper removing spaces in object initializer I like my object initializers to look like this: When hit the semicolon key, they get reformatted like this: Where is the option to stop my ...

19 Jul at 10:48

Custom Brace formatting with Resharper

Custom Brace formatting with Resharper I'm using Resharper 4.5 and I need custom formatting of braces when writing an array or object initializer. Resharper supports some styles: but I need: Is there ...

11 Aug at 14:23

Let Resharper force this keyword on fields

Let Resharper force this keyword on fields Does anyone know if it is possible to have resharper force the use of the this keyword when it can be used? For fields and such... Resharper is capable of sh...

21 Sep at 11:58

resharper extract interface grayed out

resharper extract interface grayed out how to create an interface off of a class using resharper? the option is grayed out. VS does have an option for refactoring the interface out of the class but re...

Enum.ToString() deprecated?

Enum.ToString() deprecated? When I type `.ToString()` on an `Enum` type in Visual Studio, the Intellisense shows a "strike-through" line through `ToString()` (although it builds and works fine). It se...

28 Jul at 07:3