Say I have a method signature like this:
protected override void Initialize(params object[] parameters)
... and the object can accurately handle all the parameters. When I do the validation of these parameters (say setting them to fields of the class) and one is null, I'd like to be able to do something like this without a warning fr...
I can't figure out what Re# is complaining about with a piece of code. Everything compiles ok and works as it should, but Re# can't seem to resolve the expression without offering any suggestions. Look at the attachment for code and error.
Any offers?
...
I vaguely remember reading "something" "somewhere" about using Trace.WriteLine over Console.Out.WriteLine in nUnit possibly in the context of reSharper or TeamCity but I cannot remember the details.
Therefore the question is either in the context of nUnit running separately or within reSharper/TeamCity is there any benefit of using one ...
Can anybody please tell me how to get ReSharper to replace multiple instances (instead of just one) of a highlighted expression when using Extract Method ? I swear I've gotten it to do it before (just like Eclipse does in its Extract Method refactoring), but I'm unable to do it on the latest installation, 5.1. I'm using Visual Studio 201...
I've noticed that ReSharper disables the standard VS2010 C# language service's error reporting to the error list. I have to do a full build in order to get C# to provide errors that ReSharper doesn't report. When I uninstall ReSharper, C# remains in its disabled/broken state. How can I re-enable it so that I get language service-genera...
"TestDriven.NET" has a great feature called "test with debugger". Is there anything like this in ReSharper?
Tried googling this, but can't find anything.
...
My VS2010 Premium RTM installation has developed a nasty habit of crashing when I edit a string literal. It 'feels' like the Intellisense bug and I have an unreasonable and unsupported hunch that this has something to do with ReSharper, because the ReSharper integrations get slower and slower until finally the crash happens when I edit a...
I work in a codebase where for historic reasons not all projects have identical coding conventions. In fact, within a single .sln I have projects requiring different naming conventions.
Is there a way to have resharper use different settings based on which project the file I'm editing lives in?
...
I have ReSharper 5.0 for C# running on VS 2008 SP1. Most key combinations like (Ctrl+R, Ctrl+R) for renaming an identifier or (Ctrl+Shift+T) for going to a file work.
I thought I would try some of the other refactorings like adding a parameter to a method, but I get the following error, when I put the cursor over a private method.
...
How do you stop resharper from adding "" when you type "?
...
Possible Duplicate:
What is your favorite use of Resharper?
What is your favorite feature/shortcut/template of Resharper 5 that is not obvious but extremely useful?
...
I'm using Resharper (with the StyleCop plugin, although I don't think that's relevant to the question/answer) to enforce naming conventions amongst other things in our code base. Pretty much everywhere this works brilliantly, with one exception.
For test method names I prefer the following convention:
ThingOrBehaviourUnderTest_Actio...
In Visual Studio 2005, my coworker can right click a tab and he has an option "Find in Solution Explorer". I know this is from ReSharper and I'm running ReSharper 5.1 - how do I enable this extra context menu? I also know about the Shift+Alt+L shortcut for the same command but want to add the context menu.
This is what I see when I righ...
Resharper has some commands I just can't live without (keybindings are given for the Visual Studio template):
Open by filename (Ctrl+Shift+T)
Locate in solution explorer (alt-shift-T, useful only when solution explorer is configured not to track the current file already)
Does visual studio have alternatives to these that don't requir...
Is there plugin like Key promoter (IntelliJ IDEA) - http://plugins.intellij.net/plugin/?idea&id=4455 - but for Visual Studio (2010) with ReSharper?
...
Always, I have got the following message:
name 'byteProivder_LengthChanged' does
not match 'Methods, properities and
events'. Suggested name is
'ByteProviderLengthChanged'
Not even the VS generated method name could get away from this suggestion. For example FormXXX_Load is adviced to change to FormXXXLoad.
So what should I ...
How can I reset all options in Resharper back to their default?
...
We have a project in ASP.net MVC2 were we have our own ViewEngine that overrides were views locations are. Problem is that Resharper 5.1 is not picking up this, of course. Is there anyone who knows of a way to extend R# to pick this up?
I don't want to disable R# to not try to resolve view globally or local with the R# comment. I want ...
I'm trying to call a method with many parameters in vs2008. Resharper's (v5) intellisense shows only few of them and then "Use smart Completion to see all". OK, I'm pressinf Ctrl+Shift+Space - and after that he shows some stupid suggestions like "String.Concat, String.Copy...", but I want to see as usual what name and type of parameter I...
I want to convert all my public non-virtual methods to virtual. I'd like to do it in a by-project fashion (my solution has about 55 projects).
I'd like to add a setting in the Code Cleanup profile that does this for me. If you know any other way to do this I'd appreciate your help!
Thx!
...