Questions tagged [resharper-6.0]

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

ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio 2003, 2005, 2008 and 2010. Version 6.0 provides various improvements over previous versions such as:

  • Support for HTML, JavaScript, CSS, and Razor view engine.
  • On-the-fly code analysis for VB.NET.
  • An improved unit test runner.
  • Decompiling functionality to assist in figuring out the behaviour of third-party libraries.
  • Converting LINQ to loops.
  • Improvements in XAML support.
  • Colour highlighting for properties representing colours and code completion visualizing colours and brushes.
  • Import types for pasted code.
  • ReSharper suggestions explained.
  • Searchable code inspection severity options.

See also:

What's New in ReSharper 6.0

89 questions
8
votes
2 answers

Find constructors with more than 3 parameters with Resharpers pattern catalogue

Is it possible to create a search pattern in the pattern catalog of Resharper to find all constructors with more than 3 parameters? If so, how? My problem is that I don't know how to tell Resharper that only constructor definitions should match.
Daniel Hilgarth
  • 171,043
  • 40
  • 335
  • 443
7
votes
1 answer

ReSharper LINQ extension method formatting

I'm struggling with Resharpers formatting. Consider the following Code: product.Resources.Where(x => x.Tracked).Pipe(y => { //Action …
Jay
  • 2,141
  • 6
  • 26
  • 37
7
votes
3 answers

R#6 - Suggests "Use directory" in razor views. How to disable?

I am using R#6 and when I edit some razor views, R#6 suggests that I "use directory". (Whine :)) I dont want to! How do I turn off this annoyance? I have searched through R#6 options. It is definitely R# since the annoyance goes away when i suspend…
Valamas
  • 24,169
  • 25
  • 107
  • 177
6
votes
3 answers

Resharper Not Recognizing Acronym in List

I am trying to clean up warnings R# 6.1 is generating for my classes and one of the issues ReSharper is reporting is that I have incorrect capitalization on a variable. For instance I have var RECDLeft = new RECD(); and it recommends that I change…
Mark Smith
  • 1,085
  • 8
  • 19
6
votes
2 answers

ReSharper decompiler - can I use it for standalone assemblies?

I have ReSharper 6.1 and can use the Navigate To > Decompiled Sources command to decompile .NET assemblies for which I do not have source code. This is excellent when I want to take a peek inside an assembly which I have referenced in my code. Is…
Sir Crispalot
  • 4,792
  • 1
  • 39
  • 64
6
votes
2 answers

Does Resharper 6.0 (current version) support Microsoft Visual Studio 11 Developer Preview or can it be made to?

I've read articles that explain how to enable Visual Studio 2010 managed extensions to get them working with Microsoft Visual Studio 11 Developer Preview Running VS2010 Gallery Extensions In VS11, Meet Git Source Control Provider However I haven't…
Edward Wilde
  • 25,967
  • 8
  • 55
  • 64
5
votes
2 answers

Resharper Custom Patterns: Ignore property attributes

I am writing some Resarper Custom Patterns to warn us about some code constructs that need attention. One of these is replacing OnpropertyChanged("String") with a lambda variant OnPropertyChanged(() => propertyname) The search Pattern I defined is: …
Yoeri
  • 1,876
  • 15
  • 24
5
votes
1 answer

Resharper and Namespace alias qualifier

I've searched around a bit for this and tried a few things and can't get it to work without turning some stuff off that I want on. Normally I let Resharper have its way with namespace optimizations. In a Service implementation that's mapping DTO's…
Derek Beattie
  • 9,429
  • 4
  • 30
  • 44
5
votes
2 answers

Why won't MSpec integrate with ReSharper 6?

I'm having trouble with getting MSpec to work with ReSharper 6. I've just installed MSpec from the NuGet package: Next, I've quit from Visual Studio, opened an elevated command prompt and run the install script from the packages\tools folder: And…
Tim Long
  • 13,508
  • 19
  • 79
  • 147
5
votes
3 answers

Can't get Resharper 6.0 to work with xUnit.net

I have downloaded the xunit contrib for resharper but I can't get it to work. The installation instructions do not work. Does anyone else having same problem? When I try to run the unit tests I get an error "No test found".
Hash
  • 821
  • 7
  • 19
4
votes
1 answer

Resharper and live templates. Get the list of parameters in a method

I want to create a live template with resharper that allows me to write logging information inserting method name and method parameters, something like this: I have in my code, a method like this: public void searchByParams(String param1, String…
Fernando Moyano
  • 1,097
  • 4
  • 15
  • 29
4
votes
1 answer

Search for field in object

Is there any way (or Plug-In) for Visual Studio 2010 to search for field in a .net object? For example: say I debug and watch in Quickwatch an object. I look for a specific field that I know the value, but not where the field is (for example:…
Ben2307
  • 1,003
  • 3
  • 17
  • 31
4
votes
1 answer

Navigating after using ReSharper's 'Remove Not Accessed Field' quick fix

When using the 'Remove not accessed field' quick fix option from the ReSharper context menu, it highlights the affected line. Is there a keyboard shortcut that will take me to that highlighted line? (As often that line is also redundant and can be…
David Gardiner
  • 16,892
  • 20
  • 80
  • 117
4
votes
4 answers

Help with foreach, getting 'possible multiple enumeration of IEnumerable'

Trying to do a foreach: foreach(User in userList) { } Where userList is a IEnumerable userList I tried doing: userList.ToList() but I get the same message.
codecompleting
  • 9,251
  • 13
  • 61
  • 102
4
votes
1 answer

Resharper, how to get the name of the class

I am trying to write a customized template in Resharper (A plugin for Visual Studio). Can anyone tell me how to get the class name and date using macros? By the way, where can I find those build-in macros of Resharper?? Thank you!
Joe SHI
  • 1,734
  • 4
  • 20
  • 39