editorConfig to force naming convention

Anyone managed to use .editorconfig along with Unity and VS 2017 to enforce naming convention ?

I created a simple file using Microsoft example but it doesn’t seem to do anything. I wonder if the file is being ignored - as it doesn’t appear in the solution - or that is simply not supported with Unity projects.

Not using Unity, but just plain C#. I have already been struggling for a few hours, but I cannot get it working either… :frowning:

Hmm…working for me. This is what I did (also for VS 2017):

  1. Right click the solution file in visual studio
  2. “Add → New Item”
  3. Create the .editorconfig text file
  4. Close and reopen the solution

That’s it.

And Unity is using it too, here.