resharper-4.5

Solution Wide Analysis Broken in Resharper 4.5?

I'm having trouble with solution wide analysis since I upgraded to resharper 4.5. I'm continually getting false negatives, and having resharper report errors with my code that are not there. I find the only way to get rid of the errors is to open each of the reported in error files, find the offending types/classes, open those files an...

ASP.NET (MVC) jQuery Intellisense -> Error in ReSharper

I'm working on an ASP.NET MVC project using jQuery. I'm referencing the jQuery VSDoc file (jquery-1.3.2-vsdoc.js) in order to get Intellisense for jQuery in Visual Studio: <% /* %><script src="~/Scripts/jquery-1.3.2-vsdoc.js"></script><% */ %> Then Resharpers live solution analysis (the red/green symbol in the lower right status bar)...

Resharper - How to change 'local variable _ is never used' to be a suggestion.

I need to change this to be a suggestion and not a warning, but I cannot find the setting to do so. Where is it? This is the code that needs to pass (not a compilier warning). It is saying that transaction is a local variable that is not used, but this is valid. using (TransactionScope transaction = new TransactionScope()) { // .....

Unistalling ReSharper 4.5 took away right-click code editor context menu for VS 2008!

Environment Context Windows 7 (hosted in Virtual Box 3.0.4) Visual Studio 2008 Resharper 4.5 Issue After uninstalling Resharper 4.5 from VS2008 the "normal" code editor context-menu (mouse right click) doesn't work, the way to let it work just one time is to let it appear by click the keyboard key (near the altgr key) and the click...

How can Resharper be made aware of the framework version?

I am coding in VS2008 with Resharper 4.5.1, but the projects are set to target .NET Framework 2.0. Still, Resharper is making suggestions that are relevant to the .NET 3.5 framework. For instance, it tells me that I should be using collection initializers, etc... I've looked through the settings and can't seem to find the checkbox to t...

Resharper warnings window

I'm using ReSharper for my solution (that contains 10 projects) and I'd like to see the hints/suggestions/warnings/errors (listed in a window) for a chosen project. How can I do that? Note: the solution analyzer window shows only errors. ...

How to autocorrect xml documentation of methods

In the below code in xml documentations there is mismatch between the names of parameters in method's arguments and name of parameters in xml documentation. Is there any way to auto correct the xml documentation signature or any feature provided in resharper to auto correct the xml documentation. #region Get Images /// <summary> /// G...

Resharper - private vs backing field

Is there a way to tell R# to apply different naming strategy for property backing fields (_camelCase) vs class instance fields (camelCase)? Reason: I want my dependencies to be named just a any other variable. Especially if the type of the field is the same as the field name. For example private readonly MetaService metaService; ...

ReSharper: How do I turn off ReSharper for all VB Projects

Is there any way to turn off ReSharper 4.5 just for on VB projects? ...

How to repair Resharper?

I have problem with Resharper - all it's menu options are greyed, no shortcuts working... I've tried run installer with repair option - no success Also tried uninstall / install back - same.. :( ReSharperSetup.4.5.1288.2.msi Can someone advice how to make it working back? ...

Resharper 4.5 Extract method - Can't get Function!

I am using Resharper 4.5 in Visual Studio 2008. Whenever I try to extract a block of code into a method, it tries to create a subroutine and not a function. The return type option is disabled. Does anyone have any advice as to how I can get it to create a function and not a subroutine? thanks! ...

How to prevent ReSharper from shortening namespaces when adding using directives?

When I use ReSharper to add a using directive (using Alt+Enter) it removes "unnecessary" parts of the namespace. I prefer using the full namespace which is also the behavior of Visual Studio. Example: namespace MyCompany.MyTool.Data { // This is what ReSharper gives me: using Core; // This is what I want: using MyComp...

Is there a way to make Resharper 4.5 understand a multi-line TODO or NOTE?

Is there a way to make Resharper 4.5 understand a multi-line TODO or NOTE? For example, this will show up as two items in the TODO explorer: // NOTE: Because of the external dependency, this method is particularly bug-prone. // NOTE: Once we've adopted automated testing, we could get some nice testing for this stuff using a rep...

How to change the formatting of the "Use Object Initializer" refactoring in Resharper?

When I refactor the following line: Employee e = new Employee(); e.First = "Frank"; e.Last = "Rizzo"; using Resharper's "Use Object Initializer", I get the following: Employee e = new Employee { First = "Frank", Last = "Rizzo" }; I really hate this type of formatting becau...

resharper 4.5 making VS2008 very slow especially with ASPX pages

Hi, I am using Visual studio 2008 with Resharper 4.5 add-in. the Visual studio performs well on its own, but when I add resharper it slows down and VS freezes for a while every time I type and save the code. the performance is even worse when I am typing and saving aspx files (mark-up or javascript). the solution has around 35 projects...

Is there a way to mark up code to tell ReSharper not to format it?

I quite often use the ReSharper "Clean Up Code" command to format my code to our coding style before checking it into source control. This works well in general, but some bits of code are better formatted manually (eg. because of the indenting rules in ReSharper, things like chained linq methods or multi-line ternary operators have a str...

ReSharper Code Snippet for Auto-Property

Is there a way to create an auto property via code snippet using ReSharper? Like the prop for VS? ...

How to reset the "Don't show this dialog again" settings for Visual Studio and resharper

In a Visual Studio project (C#), I attempted to perform a rename of a namespace using the Resharper shortcut (Ctrl-R+R). However, because I had branched some of the files that used the namespace from another location is Source Control, they had the readonly attribute set on them. Consequently, I received a dialog which contained the fo...

Move type from one project to another via Resharper?

I have several interfaces and classes that i have in my business layer project and i want to move them into a brand new project. I am using Resharper 4.5.2. Is there any way I can do that easily and with no pain? I know about the move type functionality, but it seems like it will only do it within the same project. Any help would be ...

Resharper 4.5: How can I discard an interface and change all references to the only implementation?

Given: I have an interface. I have only class that implements that interface. Question: With Resharper 4.5 - How can I discard that interface and change all references to the only implementation? ...