A .editorconfig file define and maintain consistent coding styles between different editors and IDEs for file with different file extensions.
Code is written to be read by humans, not machines. Naming conventions and standard code styling can boost productivity, particularly if working in teams.
StyleCop analyzes C# source code to enforce a set of style and consistency rules. Rehan advocates its use in this thought provoking article.