Resharper: Possible Multiple Enumeration of IEnumerable

I don’t know exactly what your properties really is here – but if it’s essentially representing an unmaterialized database query, then your if statement will perform three queries. I suspect it would be better to do: string[] propertiesToFind = { “Property1”, “Property2”, “Property3” }; if (properties.Any(x => propertiesToFind.Contains(x)) { … } That will logically only … Read more

Code Cleanup – tool to move all using statements inside namespace in all cs files in my solution?

With Resharper it can be done in two steps. Set the checkbox “Add ‘using’ directive to the deepest scope” in Code Editing → C# → Code Style → Reference qualification. In the context menu of the solution choose “Cleanup Code…”. You might want to create a custom cleanup pofile that suits your needs before performing … Read more

ReSharper color identifiers screw up with Visual Studio 2012 dark theme

I had this same problem with vs2013 and resharper 8. I was able to fix by following these steps: Close all Visual Studio instances Open C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\Extensions\extensions.configurationchanged file Type anything there Save the file Open VS and check Fonts and Colors in Tools | Options | Environment source http://resharper-support.jetbrains.com/entries/26859128-ReSharper-Fonts-Colors-settings-do-not-appear-in-Visual-Studio-after-installation

ReSharper for C++ [closed]

Update: The JetBrains are working on Resharper for C++. While not quite as good for C++ as Resharper is for C#, Whole Tomato makes a product called Visual Assist X which handles C++ and does it in a reasonably performant manner. Developer Express also makes CodeRush, which provides more features than Visual Assist, but which … Read more

ReSharper Line Breaks and Wrapping

I guess that your problem is that the first line got broken in three. This is because of bug http://youtrack.jetbrains.com/issue/RSRP-288271 that was fixed in ReSharper 7.0. You should consider upgrading or turning off option ReSharper | Options -> Code Editing | C# | Formatting style | Line breaks and wrapping -> LineWrapping | Wrap long … Read more

Using ReSharper, how to show debug output during a long-running unit test?

If you used xUnit.net 1.x, you may have previously been writing output to Console, Debug, or Trace. When xUnit.net v2 shipped with parallelization turned on by default, this output capture mechanism was no longer appropriate; it is impossible to know which of the many tests that could be running in parallel were responsible for writing … Read more