A very generic .editorconfig file supporting the following file types:
- C# - .cs, .csx, .cake
- Visual Basic - .vb
- Script - .sh, .ps1, psm1
- Configuration - .json, .xml, .yml, .config, .props, .targets, .nuspec, .resx, .ruleset, .vsixmanifest, .vsct
- HTML - .htm, .html
- JavaScript - .js, .ts
- CSS - .css, .scss, .less
- Markdown - .md
- Visual Studio - .sln, .csproj, .vbproj, .vcxproj, .vcxproj.filters, .proj, .projitems, .shproj
All C# related code styles are consistent with StyleCop's default styles.
EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems. Find out more at editorconfig.org and the Visual Studio Docs.