The Naming Conventions Options allow you to set naming conventions for all your code elements.
Supported: C#, VB.NET
Not relevant: ASP.NET, XAML, HTML
To add an acronym to be allowed
Add the acronym signature to text box "Allowed Acronyms" at the top of the window bellow. This way it will allow you to specify upper-case acronyms longer than two characters as exceptions to the Code Style naming conventions. Specify multiple acronyms as a comma separated list.
There are seven types of rules that a user can choose from:
You can also disable the naming convention for a specific construct. Just choose “Disabled” from the rules combo box.
To add a secondary naming convention
- In case you want to have code constructs that use two different conventions, then you have to specify a Secondary Rule
Click on the Add button or open the context menu and select "Add Secondary Rule"
Specify the desired Prefix, Rule and Suffix
- Click on the Save button. The analysis will be refreshed automatically.
The result is:
The specified Naming Convetions will be used when JustCode generates new constructs:
The Naming Conventions will also be used when quick-fixes are executed: