Questions tagged [resharper]

ReSharper is a refactoring and productivity extension by JetBrains that extends native functionality of Microsoft Visual Studio versions since 2003.

ReSharper is a productivity tool for Visual Studio that aims to improve the developer experience. Providing additional features for error correction, code completion, navigation, search, syntax highlighting, formatting and cleanup, code generation and optimization, it carries out a large number of automated refactorings and streamlines unit testing using NUnit, MSTest, xUnit.net, MSpec (via plugin), amongst other features (all without the need to compile).

Current ReSharper releases support Visual Studio 2010-2019; previous versions supported Visual Studio 2003-2008.

ReSharper currently supports C#, VB.NET, ASP.NET, ASP.NET MVC, Razor, TypeScript, JavaScript, CSS, HTML, XML, XAML, MSBuild and NAnt build scripts.

ReSharper's functionality can be significantly extended with its Open API. In fact, most of ReSharper's features are implemented using this same API that is available in ReSharper plugins.

4908 questions
4
votes
3 answers

Disable Resharper intellisense for single assembly

I'm working on a project that references a dll that has been obfuscated. The dll has many namespaces and classes that are single letters. My issue is that many times while typing, Resharper will suggest classes from this assembly, e.g. if I am…
Callum
  • 77
  • 7
4
votes
1 answer

Property attribute on single line?

I got the following code: [Column] public int Id; When I remove and readd a bracket, VS 2013 changes this to : [Column] public int Id; I don't want this. It is a fresh installation with ReSharper Added. I am unsure where to change the setting.
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
4
votes
1 answer

Run Visual Studio Unit Tests vs Run ReSharper Unit Tests, differences?

So I have been running into all kinds of interesting problems in VisualStudio 2008 when running Unit Tests. Such as, when running Visual Studio Unit Tests some tests are failing together but passing individually. This is happening because some…
Andrew
  • 3,524
  • 5
  • 35
  • 50
4
votes
3 answers

Possible NullreferenceException

Resharper is showing a "Possible System.NullReferenceException" warning. I however can't see how I can get one. public class PlaceController : PlanningControllerBase { [Authorize] public ActionResult StartStop(int id) { if…
Carra
  • 17,808
  • 7
  • 62
  • 75
4
votes
1 answer

Can I write a resharper plugin to refactor a custom DSL that generates c# code

Say for example I have a yaml file immutable_class: Foo A: int B: string which according to an imagined MSBUILD rule will generate partial class Foo { public int A { set ; private get; } public string B { set; private get; } …
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217
4
votes
0 answers

TFS checkin policy with ReSharper Cleanup Code

We are trying to have ReSharper's cleanup code run on TFS Checkin. Ideally, when you right click on the solution / project and select Source Control > Check in all the files in the "Included Changes" should run cleanup code. I've got the custom…
VKom
  • 41
  • 2
4
votes
1 answer

Launch Reflector from Visual Studio 2008 References Section in Solution Explorer

How do you configure Visual Studio 2008 to launch the Redgate .Net Reflector from a right click on an assembly in the references section in the solution explorer? I have it set up at the office to do this, so I know it's possible. I do have…
Russell Giddings
  • 8,731
  • 5
  • 34
  • 35
4
votes
1 answer

Auto format parameters one per line

When I was using Visual Studio 2010 with an old version of Resharper (I was fairly new to Resharper then), I used to have an option that came up that allowed it to auto format parameters of a method to one per line when the parameters were not all…
millie
  • 2,642
  • 10
  • 39
  • 58
4
votes
1 answer

How can I find which projects reference a specific dll in my solution?

I use VS 2010 Ultimate edition. And I have ReSharper installed. How can I get the list of projects within my solution that references a specific dll (for example entityframework.dll)?
pencilCake
  • 51,323
  • 85
  • 226
  • 363
4
votes
0 answers

Using Resharper and Karma to run Jasmine tests on Angular modules in Require modules

That's a mouthful. I feel like I'm asking for the moon, but I would like to be able to use Resharper and Karma to run my Jasmine tests for my code that defines Require modules that contain Angular modules. Running the tests via resharper is useful…
steve
  • 1,021
  • 1
  • 14
  • 29
4
votes
2 answers

Disable null reference warning when I've checked for nulls

In the following code, if cmd has been initialized, then I'll make to sure to close any open connections before throwing an exception. However, even after I check that cmd is not null, I still get a possible null reference warning in subsequent…
KyleMit
  • 30,350
  • 66
  • 462
  • 664
4
votes
1 answer

Resharper Tip/Trick... is this possible?

How can I have Resharper convert code file like using Stuff; using Stuff.MoreStuff; using Stuff.MoreStuff.EvenMoreStuff; namespace CoolStuff { // src code } To namespace CoolStuff { #region Using Statements using Stuff; using…
Perpetualcoder
  • 13,501
  • 9
  • 64
  • 99
4
votes
1 answer

How do I get past the "No tests found in file" error in MSpec when everything is written correctly?

I have tried these two tutorials and a project of my own with MSpec but I am getting the error "No tests found in file" every time. I have also looked at this SO solution. And I made sure my classes are public. I would post code but I literally have…
Sealer_05
  • 5,346
  • 8
  • 35
  • 53
4
votes
5 answers

IDE Extensions for Visual Studio Express

Just a quickie question about MS Visual Studio Express editions. Can extensions like Jetbrains ReSharper or the Python Tools for VS be installed and made to work with the express editions of Visual Studio?
Gary Ridley
  • 317
  • 1
  • 4
  • 8
4
votes
1 answer

Resharper to create auto property when creating properties from XAML

If I have some XAML code that uses a DataContext Resharper picks up that there are issues when binding to properties that don't exist in that class and as part of the menu, you can select to "Create Property ". Resharper then create a property in…
Ryan Amies
  • 4,902
  • 1
  • 21
  • 36
1 2 3
99
100