Giter Site home page Giter Site logo

editorconfig's Introduction

.editorconfig Banner

A very generic .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
  • 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 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.

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 and the Visual Studio Docs.

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 extension to get support.

How can I get it?

Download the .editorconfig file in this repository or you can install the .NET Boxed templates and use the dotnet new CLI to create a new .editorconfig file in you current directory like so:

dotnet new --install Boxed.Templates
dotnet new editorconfig

editorconfig's People

Contributors

rehansaeed avatar henrygab avatar kirkone avatar ddieppa avatar rpf3 avatar vannevelj avatar muiriswoulfe avatar graue70 avatar ye4241 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.