144

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??

Alex Czarto
  • 3,151
  • 4
  • 28
  • 28

9 Answers9

105

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
Michael Freidgeim
  • 26,542
  • 16
  • 152
  • 170
Jhonny D. Cano -Leftware-
  • 17,663
  • 14
  • 81
  • 103
  • 2
    Thanks! Don't know why I couldn't find it myself. – Alex Czarto Apr 20 '09 at 20:17
  • Can't find them there, the dialog seems cut short on Win7/Vs2008 – Andomar May 13 '09 at 21:36
  • 1
    The "Manage Abbreviations" button is cut off a bit with Win7/VS2008. I was able to click the top of the button, though. If you can't, click in the grid for "User defined naming rules", press tab three times, then hit the spacebar. That focuses and hits the "Manage abbreviations..." button. – Tom Mayfield Sep 22 '09 at 20:17
  • 28
    Just an update that in VS 2010 with ReSharper 6.1 the list of abbreviations now appears under ReSharper/Options/Code Editing/C#/C# Naming Style/Advanced Settings - at the bottom of the panel is a text area with a space-separated list of uppercase abbreviations. This took me a while to locate, thought it might be helpful to others :) – defines Feb 27 '12 at 14:05
  • Though it seems to only understand 2 letters. ID is OK, SS is OK, SSM (which is what I actually want to use) is not. – Roger Willcocks Jul 11 '13 at 04:00
50

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

m1m1k
  • 1,375
  • 13
  • 14
27

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"

Neil
  • 3,899
  • 1
  • 29
  • 25
25

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):"

Jesse Webb
  • 43,135
  • 27
  • 106
  • 143
25

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):"

Joel Lister
  • 351
  • 3
  • 7
8

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

JabberwockyDecompiler
  • 3,318
  • 2
  • 42
  • 54
8

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

Screenshot: Demonstrated an an Image

Pang
  • 9,564
  • 146
  • 81
  • 122
Jordy van Eijk
  • 2,718
  • 2
  • 19
  • 37
3

ReSharper 9.2: RESHARPER/Options/C#/Naming Style/Advanced settings

Casper Leon Nielsen
  • 2,528
  • 1
  • 28
  • 37
2

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

VIRA
  • 1,454
  • 1
  • 16
  • 25