Questions tagged [resharper-6.1]

ReSharper 6.1 is a refactoring and productivity extension for Microsoft Visual Studio by JetBrains that extends the native functionality of versions 2003, 2005, 2008 and 2010. Use this tag for questions relating to version 6.1 of the application.

ReSharper 6.1 is an extension for Microsoft Visual Studio by JetBrains. There is a more general resharper tag, but it is recommended to use this tag for version 6.1 of the extension.

Further information can be obtained from the following resources:-

31 questions
16
votes
1 answer

Resharper is suggesting that string literals are localizable

One of the suggestions of Resharper 6.0 was to localize strings, and if I didn't want a string to be localized, I could suppress the warning by converting it to a verbatim string literal by adding a @. After upgrading to Resharper 6.1, this doesn't…
Brandon
  • 68,708
  • 30
  • 194
  • 223
11
votes
2 answers

Does ReSharper 6.1 work with Visual Studio 2012?

Does Resharper 6.1 support Visual Studio 2012? I have it working with VS2010 but wondering do I need to upgrade to ReSharper 7.0 for support in VS2012. It would be disappointing if I did.
amateur
  • 43,371
  • 65
  • 192
  • 320
10
votes
1 answer

NUnit test cases not run from inherited class

I have a base test class containing some test cases and some ordinary tests: [TestFixture] public abstract class TestBase { [TestCase(1)] [TestCase(2)] [TestCase(3)] public void TestA(int value) { // Perform test } [Test] public…
Anlo
  • 3,228
  • 4
  • 26
  • 33
9
votes
2 answers

Show all files contain same partial class

I have a partial class public partial class myClass defines in different files, e.g. myClass1.cs, myClass2.cs, etc. Is there a way for resharper or Visual studio built-in functionalities to find all the files belong to the same partial class?
william007
  • 17,375
  • 25
  • 118
  • 194
9
votes
1 answer

Ignore ReSharper naming rules for DTOs

I have ReSharper naming rules set up such that all property names must be PascalCase. However there are times when I have to use a different naming style to work with serialization. For example, backbone.js expects objects to have an Id named 'id'.…
dan
  • 9,712
  • 6
  • 49
  • 62
8
votes
6 answers

Any way to ignore Possible Null Reference Exception warnings when using Assert statements?

I do not want to disable the warnings completely, just when it's in an Assert statement. So for example if I have the following two lines var someObject = GetObject(); Assert.IsNotNull(someObject, "someObject should not be…
Brandon
  • 68,708
  • 30
  • 194
  • 223
8
votes
2 answers

Keyboard Shortcut for Hints

usually when I select a hint such as refactoring a certain line that I am on, when the purple hint icon or the light bulb icon shows to the left, I click on it then select the refactoring I desire. I don't want to use my mouse. How do I get that…
PositiveGuy
  • 46,620
  • 110
  • 305
  • 471
8
votes
0 answers

Resharper extract interface - default options

The defaults in the Extract Interface dialogue box for Resharper are "Place beside" and none of the members checked. Is there anyway to change this default? I'd rather "Place in another file" and all public members was checked (i.e. the opposite).
bytedev
  • 8,252
  • 4
  • 48
  • 56
6
votes
3 answers

VS 2010 + ReSharper 6.1 - Shortcut for inserting a new line?

In IntelliJ it is possible to press Ctrl + Alt + Enter to insert a new line at the current curser position in the editor. Does such a shortcut exist for VS + ReSharper? Also I'd love to have the IntelliJ Shortcut to complete the current statement…
5
votes
3 answers

Speed up VisualStudio 2010 and Resharper 6.1: Is it worth to use RamDisk?

At first I hope creating such a question on Stackeroverflow is ok, if not tell me :) I have 16GB of DDR3 RAM and I think it could be possible to speed up VisualStudio and Resharper by creating a RAM Disk. Does anyone of you have made experience with…
Rookian
  • 19,841
  • 28
  • 110
  • 180
4
votes
1 answer

How should I setup QUnit in combination with ReSharper 6.1

ReSharper 6.1 comes with support for Unit Testing Javascript code using QUnit. Only thing I wonder about how to best set up my test environment. Right now I have all my JS files in \Scripts and the according filename-test.js in \Scripts\tests. Does…
Kuepper
  • 992
  • 13
  • 39
4
votes
1 answer

Comment Opening and Closing Brackets (with ReSharper?)

Does anyone know if there's a way in Visual Studio 2010 with ReSharper 6.1 to comment out the selected lines of code with their closing brackets - or simply to comment out both the highlighted opening bracket and it's corresponding closing bracket?…
Grinn
  • 5,370
  • 38
  • 51
3
votes
1 answer

Resharper ASP intellisense information overflow

Is it possible to get resharper to list only the usable options for asp controls? With the suggestion list now, I get all possible tags and classes which does not help me being efficient. Even though I write the asp tag I still get a lot of…
Lejdholt
  • 532
  • 7
  • 21
3
votes
1 answer

How to create [CustomAttribute(typeof(GenericType<,>))] with ReSharper SDK?

Is there a way to create an attribute with a typeof expression with a generic type? The following code works only partially: CSharpElementFactory factory = ... IClassDeclaration typeDeclaration = ... IClassDeclaration classDeclaration = ... IType[]…
Michael Damatov
  • 15,253
  • 10
  • 46
  • 71
3
votes
2 answers

Change colors of status indicator in Resharper's marker bar

I really like Resharper's marker bar, but I have a form of partial color blindness (deuteranopia), and I'd like to make the green and yellow status indicators more distinguishable. Obviously it's not a big deal since I can inspect the bar for yellow…
1
2 3