Questions tagged [resharper-4.5]

Use this tag for version specific questions about ReSharper 4.5 - the refactoring and productivity extension for Visual Studio by JetBrains. When using this tag also include the more generic [resharper] tag where possible.

24 questions
34
votes
3 answers

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…
adrianbanks
  • 76,725
  • 21
  • 166
  • 198
27
votes
3 answers

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", …
AngryHacker
  • 54,471
  • 90
  • 289
  • 523
20
votes
3 answers

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…
20
votes
2 answers

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…
AngryHacker
  • 54,471
  • 90
  • 289
  • 523
11
votes
2 answers

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 in the source control…
Teevus
  • 1,014
  • 1
  • 10
  • 23
11
votes
1 answer

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…
Albic
  • 3,425
  • 3
  • 19
  • 25
7
votes
5 answers

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…
John Weldon
  • 37,037
  • 10
  • 91
  • 126
5
votes
1 answer

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…
Josh Kodroff
  • 25,181
  • 26
  • 90
  • 147
5
votes
2 answers

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.
Eran Betzalel
  • 4,011
  • 2
  • 35
  • 63
4
votes
3 answers

Resharper plugin to sort the methods alphabetically?

Does something like that exist?
AngryHacker
  • 54,471
  • 90
  • 289
  • 523
3
votes
1 answer

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?
Jim G.
  • 14,056
  • 19
  • 94
  • 153
3
votes
4 answers

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…
Maciej
  • 9,237
  • 16
  • 59
  • 83
3
votes
2 answers

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: <% /* %><% */ %> Then…
kay.herzam
  • 3,023
  • 3
  • 23
  • 37
2
votes
1 answer

ReSharper 4.5: Code coloring options don't seem to be applied for me in VS 2008 SP1

When I go to Tools->Options->Fonts and Colors I am able to see all of the ReSharper options. The only problem is that even when I change the color for "ReSharper Field Identifier" or "ReSharper Local Variable Identifier" it doesn't seem to do…
skb
  • 28,056
  • 29
  • 91
  • 140
2
votes
3 answers

Resharper 5 - are speed & memory bloat issues solved?

I am on Resharper 4.x and VS2008. R# seems to slow down the living crap out of VS2008. And of course, the memory usage can easily go to 500MB on a middle of the road Winforms solution with 7-8 projects. Now that Resharper 5.x is out, can anyone…
AngryHacker
  • 54,471
  • 90
  • 289
  • 523
1
2