开发者

How can I make the Resharper Add-on accept RequestID as a parameter instead of RequestId

开发者 https://www.devze.com 2023-02-04 15:00 出处:网络
Given the following function: public SomeClass(int RequestID) { // blah } Resharper complains that my parameter should be requestId (which doesn\'t make sense first of all, because the .NET API use

Given the following function:

public SomeClass(int RequestID)
{
  // blah
}

Resharper complains that my parameter should be requestId (which doesn't make sense first of all, because the .NET API uses UpperCamelCase most of the time for their public methods. I went into the configuration and changed the lowerCamelCase to UpperCamelCase.

Now Resharper complains that instead of RequestID, it should be RequestId. Thats a little better, but I'm the kind of guy that likes ID 开发者_JAVA技巧and not Id. Anyone got a configuration fix for this?


Add ID to the Abbreviations list. The Intellisense menu should have that option.

To manage your abbreviations, go to

Resharper -> Options -> Languages -> Common -> Naming Styles -> Advanced Settings..

0

精彩评论

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