5

I'd like to make the first letter of private methods lowercase and the first letter of public methods uppercase. However, in Rider there seems to be only one option under C# naming style that applies all methods, properties and events. What is the best way to tell Rider to use a different convention for private only?

(see also: ReSharper C# naming style for private methods and properties, Resharper version of this question)

Brian Jordan
  • 2,377
  • 3
  • 21
  • 29

1 Answers1

2

Rider doesn't have UI for cutom naming rules yet, see see RIDER-8339. A possible workaround:

  1. Open the solution in Visual Studio with ReSharper
  2. Add a custom naming rule: ReSharper | Options | Code Editing | C# | Naming Style -> Advanced Settings
  3. Save settings to a team-shared layer
  4. Open/reopen solution in Rider
Julia Vaseva
  • 456
  • 3
  • 7
  • 1
    rare case where I have rider but no resharper. Other possibilities? Evtl. add something right in settings xml? – python_kaa Feb 08 '19 at 10:00