开发者

Changing resharper settings to suit mspec coding

开发者 https://www.devze.com 2023-01-25 06:49 出处:网络
When I create a new test like the following: It should_get_something = () => foo(); When I hit the semi开发者_StackOverflow-colon resharper sticks private on the front of the delegate:

When I create a new test like the following:

It should_get_something = () => foo();

When I hit the semi开发者_StackOverflow-colon resharper sticks private on the front of the delegate:

Private It should_get_something = () => foo();

I then have to remove it.

Can I tell resharper not to do this? I tried adding a rule to the naming style dialog selecting Machine.Specifications.It and unchecking Private but this had no effect.


In general I recommend to set up ReSharper like Aaron has suggested here.


Not strictly what you're asking about, but you should a look at this too.


Yes, you can stop Resharper forcing you to use explicit private modifier. Just untick "use explicit private modifier" here: Resharper - Options - Languages - C# - Other - Modifier

0

精彩评论

暂无评论...
验证码 换一张
取 消