可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
I am using ReSharper 4.5, and what often happens when I am converting explicit properties into auto-properties, is that I will accidentally chose "Add XX to abbreviations list".
Ie: I want to convert CustomerID into an autoproperty, but due to quick butterfingers, I will accidentally add "ID" to the abbreviations list instead, which I don't want to do. (I want the naming rules to use "Id" instead of "ID").
Where can I find and modify the list of custom abbreviations in ReSharper 4.5??
回答1:
In Resharper 5. see answer below.
-In Resharper 4 use Resharper/Options/Languages/Common/Naming Style Choose the radio "Override common settings" this enables the button "Manage Abbreviations"
For a specific language
- Resharper/Options/Languages/C#/C# Naming Style
- Resharper/Options/Languages/VB/VB Naming Style
回答2:
In Resharper 7.x it's different than v6.0, its under the specific Language, for me Resharper/Options/C#/C# Naming Style/Advanced settings at the bottom of which are a list of space separated abbreviations.
Here's jetbrains (outdated?) site which details (I think the 6.x way of doing it?) http://www.jetbrains.com/resharper/webhelp50/Coding_Assistance__Naming_Style.html#dynaProc3
回答3:
In the 5.0 beta, it's similar
ReSharper/Options/Languages/Naming Style/Advanced Settings...
Then there's a box at the bottom called "Edit abbreviations as plain text"
回答4:
In Resharper 6, it's almost the same as 5...
ReSharper/Options/Languages/Naming Style/Advanced Settings...
Then the box at the bottom is called "Abbreviations as plain text (UPPER CASE only):"
回答5:
In Resharper 6.1 (beta) its slightly different to v6.0, its under
ReSharper/Options/Code Editing/C#/C# Naming Style/Advanced Settings
Then the box at the bottom is called "Abbreviations as plain text (UPPER CASE only):"
回答6:
ReSharper 10.0.2 using Visual Studio 2015
ReSharper > Options > Code Editing > C# > Naming Style
Click Advanced settings to open the Advanced Naming Settings window.
Modify the text box Abbreviations
回答7:
ReSharper 9.2: RESHARPER/Options/C#/Naming Style/Advanced settings
回答8:
In resharper 5.X versions, please use "Reset to Defaults" to remove already added abbreviations.
ReSharper/Options/Code Editing/C#/C# Naming Style/Override to common settings/Reset to Defaults
@user1107632: 2D and 3D are not a valid variable and you are not going to use anyway.
http://www.informit.com/articles/article.aspx?p=24472
回答9:
For ReSharper 2016 / 2017 this can be found under
ReSharper >> Options >> Code Editing >> C#/VisualBasic.net >> Naming Style >> Advanced Settings... >> Here you will find abbreviations
Depending on the language you will find it under different places..
Somtimes you will find it under ReSharper >> Options >> Code Editing >> {language} >> Naming Style >> abbreviations
Demonstrated an an Image