How to access abbreviation list?

Hi,

I have just added an abbreviation as described here:

https://www.jetbrains.com/help/rider/Coding_Assistance__Naming_Style.html#abbreviations

Where can I find the complete list of abbreviations that are included in my project or solution? How can I remove it from the list?

Thanks in advance.

PS: Please notice that I'm not talking about "Live templates", this is about the list of abbreviations for naming conventions.

1
3 comments

Hi! 

At the moment, Rider hasn't the UI neither for adding custom naming abbreviations nor for the list of already added; see RIDER-8339. When adding the appreciation you can select where to save this preference. So, if you selected "solution personal" layer, the abbreviation will add to .sln.DotSettings.user in the solution folder. For more information, see Manage and Share JetBrains Rider Settings

There will be a string like this in the settings: 

`<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=LTT/@EntryIndexedValue">LTT</s:String>

To remove abbreviation, just remove all the string. 

Should you have any questions, please, let me know.

1

It seems that I selected the "computer" layer so I found the file at:

%USERPROFILE%/AppData/Roaming/JetBrains/Rider2020.1/resharper-host/GlobalSettingsStorage.DotSettings

The path is different from the one found in the url you mentioned so I leave it here for others.

Thanks Alexandra!

 

2

As a workaround, you can set the caret on the highlighted name, press Alt+Enter and choose Inspection 'Inconsistent Naming' > Add 'XX' to the abbreviations list.

1

Please sign in to leave a comment.