Questions tagged [resharper-8.0]

Use this tag for version specific questions about ReSharper 8.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 executes solution-wide static code analysis (error detection on-the-fly, without the need to compile), provides additional features for error correction, code completion, navigation, search, syntax highlighting, formatting, code generation and optimization, carries out 40 automated refactorings, and streamlines unit testing using NUnit and MSTest, among other features.

ReSharper 8 was released in july, 18th 2013 and add support for Visual Studio 2013 Preview while preserving compatibility with previous versions of the IDE, namely Visual Studio 2005, 2008, 2010 and 2012

105 questions
5
votes
0 answers

Visual Studio 2013 + Resharper, How to make a shortcut to batch rebuild all?

I'm using Visual Studio 2013 Ultimate Update 2 I'm also using Resharper 8.2 I have 4 different build configurations. What I currently do manually is click on Build -> Batch Build -> Select All -> Rebuild I want a keyboard shortcut to do this all,…
4
votes
1 answer

WPF Resource is not found by ReSharper in design time but solution builds

I use ReSharper 8.2.3 Full Edition with Visual Studio Ultimate 2013 and .NET 4.5. The background is that I have a C# WPF solution with a large number of projects. To simplify the description here, I have the following projects: Project 1: Library…
4
votes
1 answer

Disable just the switch snippet in resharper 8 (c#)

I find that the default VS 2013 switch snippet works a lot better than the one from resharper. any way to just disabe that?
mmilan
  • 1,738
  • 8
  • 31
  • 57
4
votes
1 answer

Resharper moving top brace next to if statement. How to have on new line?

My Resharper 8 is auto formatting on the end brace. The top brace moves to the end of the IF statement line. How can I have it format to the next line. Starting statement if (condition) { var x = new foo(); } When the bottom brace is removed…
Valamas
  • 24,169
  • 25
  • 107
  • 177
4
votes
2 answers

Resharper Create Custom Refactor for ReactiveUI's ReactiveObject

So I have a ton of viewmodels and models in my code that require each property to use the ReactiveUI way of observing their changes: private bool _myProperty; public Boolean MyProperty { get { return _myProperty; } set {…
Robert Petz
  • 2,718
  • 4
  • 23
  • 52
4
votes
2 answers

Move Foo and Foo with ReSharper to matching files

Code I would like to use the ReSharper Move Types Into Matching Files functionality to move the code below which is written in a single .cs'. file: public abstract class Foo { } public abstract class Foo : Foo { } Executing the ReSharper…
Myrtle
  • 5,761
  • 33
  • 47
4
votes
1 answer

Object Initializer Formatting

Which setting(s) in Resharper 8 are reformatting my object initializer like this? (i.e. with the comma on it's own line). var snowDepthProcessor = new DataProcessor { Name = "Snow Depth" , DataRetriever =…
David Hayes
  • 7,402
  • 14
  • 50
  • 62
4
votes
1 answer

ReSharper 8.0 debugging plugin in VS2010 works first time then errors subsequent attempts

I have created a ReSharper 8.0 plugin project using the VS2010 project template "ReSharper 8.0 Plug-In and Tests". This complies and works fine. When I come to debugging it I hit F5 and a new instance of VS2010 is instantiated with my plugin loaded…
shanem
  • 63
  • 1
  • 5
3
votes
1 answer

Create a generic type to find implementations of in a Resharper plugin

I'm writing a plugin for resharper which I want to use to navigate from a ConcreteCommand -> ConcreteCommandHandler where those types look like this public class ConcreteCommand : ICommand public class ConcreteCommandHandler :…
Sam Holder
  • 32,535
  • 13
  • 101
  • 181
3
votes
0 answers

"Scope to this" operation for methods

Is there a way to scope to a method? I mean, if I have 10 projects but want to work with only one, I can scope to it, so that the others don't appear to clutter my screen. As it's useful, it would be great if there was a way to scope to a method in…
3
votes
2 answers

ReSharper claims that my expression is always true? Is it correct or is it a bug?

ReSharper is claiming that my null check against serviceProvider is always true, which is odd. I figured that serviceProvider very well might be null. Am I wrong here, or is this a ReSharper bug? public override object ProvideValue(IServiceProvider…
myermian
  • 31,823
  • 24
  • 123
  • 215
3
votes
0 answers

create resharper naming convention based on data type of the variable

I am trying to create a custom naming convention rule in resharper based on the data type of the variable. I want to create a rule that would check the data type of the variable and would recomend matching prefix. Is this even possible. Forexample…
glant
  • 479
  • 6
  • 19
3
votes
2 answers

Resharper 8, typing property closing brace adds another }

I'm having a hard time coming up with how to word this with google. Context: newly installed Resharper 8 VS 2013 C# Inside an interface I'm typing this string Name { get; set; } And I've got Resharper 8 setup to add the } when I type the…
wormiii
  • 157
  • 10
3
votes
2 answers

Filtering ReSharper's "find usages" by file type

When I type alt-f7 against a class property in c# (in a web project), ReSharper scans through all files including javascript, html, and razor web views (.cshtml). Is it possible to tell ReSharper only to search against c# files?
David Peden
  • 17,596
  • 6
  • 52
  • 72
3
votes
2 answers

Is it possible to find usages of SomeMethod for a specific type?

I need to find all usages of EditorFor to undo something stupid I did. Is it possible to find all usages of Method for a specific T? Even hack-y solutions would be appreciated.
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148