resharper

What is the name of the ReSharper's Quick Fix command

断了今生、忘了曾经 提交于 2019-12-21 07:52:46
问题 I want to reassign the Alt-Enter keystroke (for the light bulb suggestions) to another key but I can't find it in the Options->Keyboard list. All the ReSharper commands seem to have ReSharper_ in the name. but I can't figure out what name they used for the quick fixes. 回答1: Resharper 8 seems to have renamed this to Resharper_AltEnter. 回答2: I found it under the ReSharper_QuickFix , as you'd expected. (VS 2012) See alse https://stackoverflow.com/a/1596353/1679310 来源: https://stackoverflow.com

What is the name of the ReSharper's Quick Fix command

允我心安 提交于 2019-12-21 07:51:30
问题 I want to reassign the Alt-Enter keystroke (for the light bulb suggestions) to another key but I can't find it in the Options->Keyboard list. All the ReSharper commands seem to have ReSharper_ in the name. but I can't figure out what name they used for the quick fixes. 回答1: Resharper 8 seems to have renamed this to Resharper_AltEnter. 回答2: I found it under the ReSharper_QuickFix , as you'd expected. (VS 2012) See alse https://stackoverflow.com/a/1596353/1679310 来源: https://stackoverflow.com

How to use bdd naming style with Resharper 4.5?

廉价感情. 提交于 2019-12-21 07:11:04
问题 I just upgraded to Resharper 4.5 and now see that all my BDDish test methods are marked as not conforming to the naming standard. My naming convention is like this: public void Something_ShouldHaveThisResult() Resharper doesn't like the underscore in the method. Is there a way to turn this off, just for test methods? I have a normal naming convention for the rest of my code. 回答1: On the menu: Resharper | Options -> Languages -> Common -> Naming Style: remove what ever naming style you want.

Changing Resharper's color scheme

可紊 提交于 2019-12-21 04:04:41
问题 Does anyone know how to change the ReSharper color scheme in VS2008 SP1 ? I've looked around and all the posts out there one the internet pointed to dead-ends. JeBrains at one point told users to change the colors inside VS (Tools|Options|Fonts and Colors|Text Editor) but I don't see any Resharper items in there. Thanks. 回答1: In VS|Tools|Options|Environment|Fonts and Colors, ensure the "Show settings for:" listbox is set to Text Editor and you will find the Resharper items. 回答2: Reinstalling

Is there any way to turn off Resharper 7 auto formatting?

左心房为你撑大大i 提交于 2019-12-21 03:58:20
问题 This has been driving me crazy, I've tried Resharper support with no solution, but wondered if anyone out there has experienced this. When I update an existing method and hitting the curly brace or semi-colon, I am getting a double indent: public void abc(int a, int b) { var c; // <- after hitting return after the curly brace var d; var e; } Is there any way to completely turn off Resharper formatting? Or at least fix this problem? I've looked in the Resharper->Code Editing->C# but didn't

Remove redundant delegate constructor call?

别来无恙 提交于 2019-12-21 03:44:29
问题 I downloaded ReSharper and it is telling me to change this line: dispMap.OnDraw += new EventHandler(dispMap_OnDraw); To be this line: dispMap.OnDraw += dispMap_OnDraw; Because the first line is a "redundant delegate constructor call." Is this true? In the automatically generated designer code for forms the syntax is based on the first piece of code and when typing in dispMap.OnDraw += and hitting TAB the IDE automatically generates new EventHandler(dispMap_OnDraw) I'm just curious about this

Performance concern when using LINQ “everywhere”?

我的未来我决定 提交于 2019-12-21 03:22:09
问题 After upgrading to ReSharper5 it gives me even more useful tips on code improvements. One I see everywhere now is a tip to replace foreach-statements with LINQ queries. Take this example: private Ninja FindNinjaById(int ninjaId) { foreach (var ninja in Ninjas) { if (ninja.Id == ninjaId) return ninja; } return null; } This is suggested replaced with the following using LINQ: private Ninja FindNinjaById(int ninjaId) { return Ninjas.FirstOrDefault(ninja => ninja.Id == ninjaId); } This looks all

Assert.Inconclusive and IgnoreAttribute

孤街醉人 提交于 2019-12-21 03:15:23
问题 What is the right way to use Assert.Inconclusive and IgnoreAttribute in MS Unit test framework? We are using Assert.Inconclusive mainly for tests which are: Not implemented yet Somehow broken or incomplete = requires futher attention When test body is for any reason commented out We are doing this because: Inconclusive test can have message We want to see such tests in test results on TFS Our problem is that Inconclusive tests are marked as error in both TFS and Resharper. If we use

How to change ReSharper unit test architecture to x64?

六月ゝ 毕业季﹏ 提交于 2019-12-20 20:15:15
问题 In VS2012, I resolved a BadImageException from running a unit test by going to: TEST-> TEST SETTINGS -> DEFAULT PROCESSOR ARCHITECTURE -> x64. This works in the built in Visual Studio test window but I cannot find the equivalent settings for ReSharper and so I cannot run the unit tests by clicking on the little nodes to left of the test. This is obviously not critical but really annoying. Does anyone know where these settings are? 回答1: ReSharper will run tests with the bit-ness of the test

Where is the Visual Studio 2008 Crash Log? [closed]

♀尐吖头ヾ 提交于 2019-12-20 17:39:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 11 years ago . I have Visual Studio 2008 with SP1 installed and it is crashing when I'm using lambda expressions in the Moq Framework. At first I thought the problem was Resharper...but now that I have uninstalled it, VS 2008 still crashes. I'm able to replicate the issue every time. I'm thinking perhaps it may be some other