resharper

Resharper memory usage in visual studio 2008

Can you suggest some ways/tips to decrease Resharper memory usage in VS 2008. Working set memory for my VS with 50 projects is around 650mb+ Edit: Now that 4.5 is out, this question is no longer relevant. ...

How to refactor: split a class into two which communicate via an interface

I am just embarking on my first large-scale refactor, and need to split an (unfortunately large) class into two, which then communicate only via an interface. (My Presenter has turned out to be a Controller, and needs to split GUI logic from App logic). Using C# in VisualStudio 2008 and Resharper, what is the easiest way to achieve this?...

What are the benefits of maintaining a "clean" list of using directives in C#?

I know VS2008 has the remove and sort function for cleaning up using directives, as does Resharper. Apart from your code being "clean" and removing the problem of referencing namespaces which might not exist in the future, what are the benefits of maintaining a "clean" list of using directives? Less code? Faster compilation times? ...

Access to Modified Closure

string [] files = new string[2]; files[0] = "ThinkFarAhead.Example.Settings.Configuration_Local.xml"; files[1] = "ThinkFarAhead.Example.Settings.Configuration_Global.xml"; //Resharper complains this is an "access to modified closure" for (int i = 0; i < files.Length; i++ ) { // Resharper disable AccessToM...

Resharper, has it changed your "programming" life?

Hey, We're thinking of getting Resharper and I would really be interested to hear from people who've used it and whether you get much out of it? Does it really speed up production and if you moved to anther job without it, would you miss it and why? Thanks Crafty ...

Formatting Resharper backing fields for properties in C#

Is there a way to control where Resharper puts its backing fields? currently it tries to put them at the top of the class. Id like them to go right above the property. ...

Disable, but not uninstall Resharper 4.x onwards

Any ideas on how to disable, but not uninstall Resharper 4.x or above? ...

Brace highlighting in Visual Studio for Javascript?

Is there a way to get Visual Studio 2008 to do matching brace highlighting for Javascript? If there is no way to do it in Studio, can it be done using ReSharper? Thanks!! ...

Retro fitting new language features C# (or any other language)

When working with my .Net 2.0 code base ReSharper continually recommends applying the latest c# 3.0 language features, most notably; convert simple properties into auto-implement properties or declaring local variables as var. Amongst others. When a new language feature arrives do you go back and religiously apply it across your existi...

C# NullReference Exception and ReSharper suggestion

This is what I have written: if ((lstProperty[i].PropertyIdentifier as string).CompareTo("Name") == 0) Resharper put me an error (I am new with ReSharper... I am trying it) and it suggests me : if (((string) lstProperty[i].PropertyIdentifier).CompareTo("Name") == 0) Why is the second is NullException safe? For me both will crash ...

Resharper region options on Alt+Insert

How can I set Resharper to wrap, say, the generated equality members with regions when selected from the Alt+Insert menu? Thanks ...

Invert "if" statement to reduce nesting

When I ran Resharper on my code, for example: if (some condition) { some code... } Resharper gave me the above warning (Invert "if" statement to reduce nesting), and suggested the following correction: if (!some condition) return; some code... I would like to understand why that's better. I always thought...

Initializing field by default value is redundent

Can I really and truly trust .NET to initialize fields (like ints, structs and the like)? And what if I still want to initialize those fields - what could be the repercussions? ...

Resharper with large or *very* large files

Hi, I just wanted to know your experience with using resharper. We have a very heavy dbml file as our database has many tables and every time I need to open up that file I start getting lots of exception coming from resharper. Has anyone had that problem before? If yes, what did you do to fix this very ANNOYING problem !?!? Thanks ! An...

Does Application.ExecutablePath return different values depending on the test runner?

I'm trying to see if there's a way to get a consistent unit test result across multiple test runners. The current situation is that we have a test assembly where 4 of the tests pass if you run them in NUnit GUI, but fail if you run them using TestDriven.NET or the ReSharper test runner. In the cases where these tests are failing (a Sys...

Written a resharper plugin that modifies the TextControl?

Resharper claims to eat it's own dogfood, specifically, they claim that many of the features of Resharper are written ontop of R# (OpenAPI). I'm writing a simple plugin to fix up comments of the current document of a selection. When this plugin is run, it throws an exception as follows: Document can be modified inside a command scope ...

How to find all pages that use a Master Page in Visual Studio

Is there a way to find all web pages that implement a specific master page in Visual Studio? I'm looking for a shortcut like shift F12 that will find all usages of a master page. When I do it on the master page class name it only takes me to the design view instead of showing all pages that use it. I do have Resharper if there is somet...

Is there a GhostDoc like plug-in for CodeRush or ReSharper?

I have noticed that GhostDoc hasn't been updated in a long while. So I am curious if there is a plug-in for Resharper or CodeRush that will accomplish the same thing? Or even if this type of functionality is built in to one of the tools that would be great too. ...

Resharper: vars

Why does Resharper want you to change most variables to var type instead of the actual type in the code? ...

Access to Modified Closure (2)

This is an extension of question from Access to Modified Closure. I just want to verify if the following is actually safe enough for production use. List<string> lists = new List<string>(); //Code to retrieve lists from DB foreach (string list in lists) { Button btn = new Button(); btn.Click += new EventHandler(delegate { MessageBox....