I have prepared my .editorconfig
file which I want to use on multiple Git repositories. Each repository holds a Visual Studio solution (C#). My first thought was to put the .editorconfig
file in its own repository and then include it in all "solution repositories" as submodule. The problem however: The submodule will be in a subfolder. The contained .editorconfig
will thus not be applied to the whole project/solution (but only to the subfolder and its children). It seems to me that I cannot specify a path to my solution-wide .editorconfig
in the solution configuration file (.sln
), either.
What is the best approach to actually share a single .editorconfig
file between multiple Git repositories? The .editorconfig
file still needs to be version controlled (and thus shared between users), ie. no local editorconfig configuration.