resharper

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

删除回忆录丶 提交于 2019-12-02 20:11:24
I'm using xUnit with the ReSharper test runner and the xUnitContrib resharper plugin. When I have a long-running test, I'd like to be able to output some progress indicator to the Unit Test Output window. I've tried Debug.WriteLines , Trace.WriteLine and Console.WriteLine . All of which have the same behavior - nothing shows in the output window until the test has completed. For example: [Fact] public void Test() { Debug.WriteLine("A"); Trace.WriteLine("B"); Console.WriteLine("C"); Thread.Sleep(10000); } The test shows no output until the 10 seconds have elapsed and the test completes. How do

Uninstall of CodeRush and ReSharper - Intellisense Not Working

落花浮王杯 提交于 2019-12-02 20:07:27
Install order: Visual Studio 2008 ReSharper Uninstall ReSharper CodeRush with Refactor Pro Uninstall CodeRush with Refactor Pro Now my intellisense doesn't work. Any settings I should look at before I try a uninstall / reinstall? I'm sure there must be something buried in the Options that these plug-ins hook into or override. Here are a couple of settings to check: Tools > Options > Text Editor > C# > General > Statement completion "Auto list members" and "Parameter information" should be checked. Tools > Options > Text Editor > C# > General > IntelliSense "Show completion list after a

How can I turn “Object Browser” to “Metadata” for “Go to definition” in Visual Studio 2010?

青春壹個敷衍的年華 提交于 2019-12-02 19:59:36
Before installing Resharper, Ctrl + Left Click for Go to definition , Visual Studio 2010 uses to Metadata . After the install Resharper , when I try to first time Ctrl + Left Click, Resharper asked me with popup where I want to go, I click Object Browser for testing. Now I want to get back this setting, but in Resharper , there is only one option for this; ReSharper | Options -> Environment | Search & Navigation and turning off or on Go to declaration on Ctrl + Left click in editor But If I turned off this setting, It doesn't take back this setting to Metadata . It still goes to Object Browser

Ctrl+R, Ctrl+R command not working

让人想犯罪 __ 提交于 2019-12-02 19:53:02
I'm attempting to use the Ctrl + R , Ctrl + R command within Visual Studio 2008 to rename a variable. I get an error message at the bottom saying that "The key combination ( Ctrl + R , Ctrl + R ) is bound to command (&Rename...) which is not currently available." I am not running it or anything I can think of which might prohibit modifications of the file and the F2 command allows a rename to happen. Anyone know how to fix this? EDIT: I do have Resharper installed but was previously able to do this with the same setup, I recently migrated computers. mwright I was able to fix this by doing the

How can i specify a designer datacontext for a style, so Resharper finds my properties?

雨燕双飞 提交于 2019-12-02 18:39:47
I often bind the IsExpanded and IsSelected properties of a TreeViewItem to my viewmodel. This for example makes it possible to make an item pre-expanded when the tree is loaded or expand an item when it gets selected. The XAML looks like this: <Window x:Class="StyleSetterDatatypeTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:test="clr-namespace:StyleSetterDatatypeTest"

How are you using the pattern matching functionality in ReSharper 5?

一个人想着一个人 提交于 2019-12-02 18:35:51
Resharper 5's new pattern matching seems very powerful, though it takes a bit of tinkering to work out how to use it. For those who aren't familiar with this feature, it allows you to search for specific patterns within your code. Instances of such patterns may optionally be replaced with an alternative. In IntelliJ this was called structural search and replace. It's much more powerful than simple RegEx search/replace. I'd like to collect a series of patterns that people are using so that I can learn how to use this feature better. I propose that each answer include: a brief introduction of

Get correct indentation in Resharper for object and array initializers

一曲冷凌霜 提交于 2019-12-02 17:51:47
Right now resharper formats our code like this: private readonly List<Folder> folders = new List<Folder> { new Folder() }; but I want it to look like this: private readonly List<Folder> folders = new List<Folder> { new Folder() }; I've been messing with the options a lot, but can't seem to get them right. Can you help? I had the same issue with anonymous delegates. The fix for anonymous delegate formatting is here : I did finally find the way to fix this. The options for formatting anonymous methods are spread across two separate pages in ReSharper options: Braces Layout and Other. The “don’t

How to share the same Resharper settings between multiple solutions, with no manual intervention?

廉价感情. 提交于 2019-12-02 17:22:35
Our projects are organized in a master solution (containing every project) and multiple smaller solutions containing groupings of related projects. I would like to share the same Resharper settings across every solution, making sure that the developers don't ever need to import configuration files in Resharper or do anything manually for that matter. The version we are using is one of the latest ones, 7.0.1. The DotSettings file checked in in TFS works great on a single solution, but replicating the same file for 20-30 solutions is a no-no. Is there a way to share the same configuration with

Resharper uninstall - Visual Studio no longer shows correct error highlighting

安稳与你 提交于 2019-12-02 17:13:48
I've been trying out resharper and decided that I'd like to uninstall. However, after doing so, Visual Studio no longer shows red underline highlighting that it normally uses to identify the location of errors in the code. This has happened on two of our PCs so far. I've tried a reinstall and a repair, but no luck. Any ideas how I can restore the highlighting in Visual Studio? Cheers Nick Igal Tabachnik Go to Tools → Options → Text Editor → C# → Advanced , check the following options: Underline errors in the editor Show live semantic errors In fact, Resharper (as of 8.1) clobbers more than

Where can I find nice Dark ReSharper (with Color identifiers = on) Themes?

梦想与她 提交于 2019-12-02 17:10:46
I haven't come across any decent dark Visual Studio 2008 color themes with support for ReSharper 's Color identifiers turned on. Have any been published? Drew Noakes I created a dark theme that uses the additional color targets provided by Resharper. It is available for download here . Remove the .txt extension from the file and then import it into Visual Studio via Tools > Import and Export Settings . This settings file only contains color settings, so it won't interfere with any other settings you may have configured. Note that I exported this file from VS2010 with Resharper 5.1. It may work