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
107
votes
3 answers

The current SynchronizationContext may not be used as a TaskScheduler

I am using Tasks to run long running server calls in my ViewModel and the results are marshalled back on Dispatcher using TaskScheduler.FromSyncronizationContext(). For example: var context =…
anivas
  • 6,437
  • 6
  • 37
  • 45
50
votes
3 answers

Completely Disable Formatting and Completion in ReSharper for Visual Studio

I like a lot of the features that ReSharper offers, but I absolutely can't stand the formatting and code completion it does. It trips me up every step of the way. In javascript it's constantly stealing braces attempting to reformat my code making…
43
votes
6 answers

ReSharper: Namespace does not correspond to file location

I renamed a folder and updated my namespace declarations, but ReSharper 6 claims that the namespace should be a reflection of how it was before the rename. Where is it storing the file location data?
Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
25
votes
1 answer

How can I remove a user category from a template?

How can I remove a user category from a Resharper Live Template? When only a category is selected (and not a template itself) the delete button is disabled: None of the items provide context menus, and editing a template does not provide any way to…
dlras2
  • 8,416
  • 7
  • 51
  • 90
21
votes
3 answers

How do I format so method parameters are stacked vertically, one per line?

I have a method that I want formatted like this: public static IQueryable GetThings( this EntityContext one , int? two = null , int? three…
Greg Smalter
  • 6,571
  • 9
  • 42
  • 63
17
votes
1 answer

Resharper 6 - automatically adding "this"

There is a naming style in a company I work for that "this" must be added to every function, property call and field. Sometimes I forget about it. I want Resharper to do it automatically. Any suggestions?
Alexandre
  • 13,030
  • 35
  • 114
  • 173
15
votes
13 answers

"Possible multiple enumeration of IEnumerable" vs "Parameter can be declared with base type"

In Resharper 5, the following code led to the warning "Parameter can be declared with base type" for list: public void DoSomething(List list) { if (list.Any()) { // ... } foreach (var item in list) { //…
Daniel Hilgarth
  • 171,043
  • 40
  • 335
  • 443
13
votes
1 answer

Temporarily disable StyleCop warnings on ReSharper 6

I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic! However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on. Is there any way of doing this?…
Nikos Baxevanis
  • 10,868
  • 2
  • 46
  • 80
12
votes
3 answers

Cannot resolve symbol issue with resharper but code compiles

I know this has been asked before, but there was no solution to the problem, and it was last year, so I thought maybe someone has found something to solve this by now. I am using VS2010 with SP1. before installing the SP1 there was no problem. if I…
bokkie
  • 1,477
  • 4
  • 21
  • 40
10
votes
3 answers

How to run a single Specflow scenario in Resharper

I am using Specflow (http://specflow.org/) to write some integration tests and I would like to run a single Scenario. Is there any way to run a single scenario with Resharper 6? BTW I configured specflow to use MSTest. My Specflow test looks…
Diego
  • 327
  • 1
  • 5
  • 13
10
votes
2 answers

Is "Access to modified closure" resolved by comprehension syntax?

ReSharper 6.0 gives me the "Access to modified closure" warning for the dr identifier in the first code snippet. private IEnumerable GetTheDataTableStrings(DataTable dt) { foreach (DataRow dr in dt.Rows) { yield return…
lance
  • 16,092
  • 19
  • 77
  • 136
10
votes
3 answers

Can ReSharper ignore projects/tests in navigation

When using the various navigation and usage features of ReSharper, is there a way to make it hide some of the projects (with tests) in the solution? Often when I'm browsing through the code, I'm not really interested in the tests, but only the…
Karsten
  • 8,015
  • 8
  • 48
  • 83
10
votes
2 answers

Resharper fluent interface code formatting (align to the dot)

I read a lot of answers about formatting options for fluent indendation. ( Resharper formatting code into a single line and ReSharper fluent indentation and http://youtrack.jetbrains.com/issue/RSRP-88220 ) like this: mockCrypto.Expect(c =>…
Dvor_nik
  • 1,091
  • 1
  • 10
  • 13
10
votes
2 answers

Disable Automatic File Header Creation (ReSharper and StyleCop)

I recently installed R# 6.1 (C# version, not Full) with StyleCop 4.7.34.0 (with the R# plugin). When adding a new class to a project, the file header information is automatically added. How do you disable this? I've turned off the checkbox for…
ryan
  • 481
  • 7
  • 11
8
votes
2 answers

ReSharper - how to disable generation of rubbish documentation headers in Code Cleanup

We're using ReSharper 6.0 with StyleCop for ReSharper. Although we use the StyleCop rule that members must have documentation headers, we don't want ReSharper's code cleanup facility to generate documentation headers for us, because they're…
David
  • 15,750
  • 22
  • 90
  • 150
1
2 3 4 5 6