Hi, I'd like to select multiple issues in Inspection Results and fix it automatically. Is there any way to do that?
EDIT:
I strongly encourage to vote for this feature here: http://youtrack.jetbrains.net/issue/RSRP-126551.
...
I'm using VS2010, ASP.NET MVC 2, and ReSharper 5.0. When I create a new view that's typed off of a model from the same project as my view, ReSharper doesn't see the reference to the model.
This is the definition of my view:
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Web.Domain.UserViewModel>" %>
Domain.UserViewModel ...
Things were running fine. Who knows what changed, but now I end up with:
Unit Test Runner failed to load test assembly:
JetBrains.Resharper.TaskRunnerFramework.TaskException:Exception of type 'Microsoft.VisualStudio.TestTools.CommandLine.CommandLineParameterException' was thrown.
Any suggestions?
...
In using ReSharper recently, it is suggesting I reduce nesting in certain places by inverting if conditions and using the continue statements.
nested conditionals:
foreach(....)
{
if(SomeCondition)
{
//do some things
if(SomeOtherNestedCondition)
{
//do some further things
}
}
}
...
What are some useful live templates for Resharper that you use on a daily basis?
...
I have a property "EntityID" in a class. Resharper (5.1) says
Name 'EntityID' does not match rule
'Methods, properties and events'.
Suggested name is 'EntityId'.
But IMHO according to the naming conventions in the Design Guidelines for Class Library Developers. 'EntityID' should be perfectly fine:
Do not use acronyms th...
Hi,
I have recently installed Reshaper....this is very good and helpful however it has changed all my keyboard shortcuts e.g. to comment out code it was ctrl+e then c, now it is ctrl+k then c.....this is a pain given that I have got myself into a natural swing of using all the shortcuts and now I have to think everytime I want to use th...
I am red/green colour blind and I find that the default palette used by the "resharper bar" makes suggestions and errors hard to differentiate - especially if the file has a lot of suggestions.
{By "resharper bar" I mean the bar on the right hand side of the text editor window (see http://imagebin.org/107149)}
Is there any way of chang...
I have a simple ViewModel class like
public class TestViewModel
{
public String Information { get; set; }
}
My View inherits from it and I got Intellisense kicking in. So far so good.
I have written these for tests in the View:
<%= Html.Encode(Model.Information) %>
-- <%= Html.Label("Information") %>
-- <%= Html.LabelFor(m => m....
I'm using the Resharper trial and VS2008. Is it possible to extract all classes from one file into a separate file? I'm able to do this using Resharper but it only seems to work for individual classes. This is to be used on a file that was auto-generated that is 65,000 lines long.
...
Hi!
I suspect I should create a pattern in ReSharper / Options / Languages / C# / Formatting Style / Type Membership Layout for this. I am currently using the default pattern and I would like some help from someone who is good at them.
I want this to be WRONG:
public new static Age Empty {
get {
return empty;
}
se...
I just recently ran into the "Search with Pattern" tool in the new ReSharper.
I tried to search for
private $Type$ $Var$ = new $Type$($TypeArgs$);
but when I search it just says "Cannot parse pattern"
when I take way the private access modifier it works. But I am trying to explicitly search for it with the access modifier.
I have a...
We had a bunch of computers at work running VS2010 with Resharper. In VS2008, Resharper ran slow enough that all the other devs stopped using it ... even those on quad core boxes and 8GB+ of memory. In VS2010, Resharper 5+ starts up great and works fine ... but then within ~4 hours starts to go downhill. We first notice that simple fu...
I am working on a project using ReSharper. On occasion it prompts me that a field can be made readonly. Is there any performance or other benefit to this? I am presuming the benefits would be quite low-level, or would any benefits be purely semantic?
Thanks
With example below the field was initially just private, but resharper prompted...
I came across a C# language feature today courtesy of ReSharper, the ?? operator. This helped make the code even more concise than my initial attempt. See below for iteration in improving lines/length/readability of code.
A first attempt could be something like..
if (usersEmail == null)
userName = firstName;
else
userName = usersEm...
For a long time I have been working with ReSharper.
But after seeing CodeRush being used in a tutorial video, I started to wonder if I should consider to try CodeRush as well.
But before giving a try I wanted to ask you if you've had a chance to work both with ReSharper and CodeRush, so that you could share your objective opinions on t...
I've noticed Resharper suggestion under "Common Practices and Code Improvements": Convert local variable or field to constant.
I've also noticed that in Bill Wagner's book "Effective C#: 50 Specific Ways to Improve Your C#" there is a langauge idiom "Prefer readonly to const" in which author explain risks of using consts.
My question i...
Is there any "Debug Current Session" option within Resharper that works the same as "Run Current Session" or "Debug Selected Tests".
I want to create a keyboard shortcut that will debug the current Unit Test Session (or selected tests) regardless of what file currently has focus.
...
Do you know of a ReSharper 5.1 plugin that allows me to go to the declaration of a class or member that I do not have the source code for using .NET Reflector?
Usually Reflector itself has this feature already (rightclick-> "Open in .NET Reflector") but unfortunately this feature does not work with resharper. The explanation for this ca...
I'm using MSpec and Visual Studio 2010 with Resharper 5.1. I've installed the MSpec test runner plugin into resharper but it's not working properly. Here's my test:
public class when_I_click_create_investment_manager : with_main_window
{
Establish I_am_viewing_the_main_page = () => mainWindowViewModel = new MainWindowVie...