Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rehansaeed/editorconfig
A very generic .editorconfig file supporting .NET, C#, VB and web technologies.
https://github.com/rehansaeed/editorconfig
csharp dotnet editorconfig editorconfig-settings stylecop visual-studio web
Last synced: about 7 hours ago
JSON representation
A very generic .editorconfig file supporting .NET, C#, VB and web technologies.
- Host: GitHub
- URL: https://github.com/rehansaeed/editorconfig
- Owner: RehanSaeed
- License: mit
- Created: 2017-03-17T09:59:05.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T09:37:20.000Z (11 months ago)
- Last Synced: 2024-10-30T02:36:33.482Z (about 2 months ago)
- Topics: csharp, dotnet, editorconfig, editorconfig-settings, stylecop, visual-studio, web
- Homepage:
- Size: 102 KB
- Stars: 632
- Watchers: 23
- Forks: 172
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
![.editorconfig Banner](Images/Banner.png)
A very generic [.editorconfig](https://github.com/RehanSaeed/EditorConfig/blob/main/.editorconfig) file supporting the following file types:
- C# - .cs, .csx, .cake
- Visual Basic - .vb, vbx
- Script - .sh, .ps1, .psm1, .bat, .cmd
- XML - .xml, .config, .props, .targets, .nuspec, .resx, .ruleset
- JSON - .json, .json5
- YAML - .yml, .yaml
- HTML - .htm, .html
- JavaScript - .js, .jsm, .ts, .tsx, .vue
- CSS - .css, .sass, .scss, .less, .pcss
- SVG - .svg
- Markdown - .md
- Visual Studio - .sln, .csproj, .vbproj, .vcxproj, .vcxproj.filters, .proj, .projitems, .shproj
- Makefile### .NET Code Style
Extensive code style settings for C# and VB.NET have been defined that require the latest C# features to be used.
All C# related code styles are consistent with [StyleCop's](https://github.com/DotNetAnalyzers/StyleCopAnalyzers) default styles, with the exception of the file header definition, which has been changed to a more modern format.
All .NET naming conventions are consistent with the .NET Framework Design Guideline's [Naming Guidelines](https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/naming-guidelines).# What is .editorconfig?
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](http://editorconfig.org/) and the [Visual Studio Docs](https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference).
# How do I use It?
All you have to do is drop it into the root of your project. Then any time you open a file in Visual Studio, the .editorconfig file settings will be used to help format the document and also raise warnings if your code style and formatting does not conform. For Visual Studio Code, you can install the [EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) extension to get support.
# How can I get it?
Download the `.editorconfig` file in this repository or you can install the [.NET Boxed](https://github.com/Dotnet-Boxed/Templates) templates and use the `dotnet new` CLI to create a new `.editorconfig` file in you current directory like so:
```powershell
dotnet new --install Boxed.Templates
dotnet new editorconf
```