Chickensoft.EditorConfig 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install Chickensoft.EditorConfig::1.0.0                
This package contains a .NET Template Package you can call from the shell/command line.

Chickensoft EditorConfig

Chickensoft's EditorConfig for C#. If you want to write code in the style of the other Chickensoft packages, this EditorConfig is for you!

About

  • ✅ Indentation is 2 spaces (not tabs)
  • ✅ Newlines are LF only
  • ✅ All dotnet analyzers are configured to be enabled as warnings by default.
  • ✅ Add roslynator suppressions for unwanted Roslynator analyzer warnings. Roslynator is available as an extension for VSCode and provides numerous refactoring and analysis features.

This coding style makes no attempt to follow Microsoft's standards. Rather, it is designed for ease of use while writing C# scripts and packages for use with the Godot Engine.

Notable style choices:

  • ✅ K&R Style Braces

    namespace MyNamespace;
    
    public class MyObject {
      // Opening braces don't have their own line.
    }
    
  • ✅ Non-private constant fields are UPPER_CASE

    public class MyObject {
      public const int A_NUMBER = 42;
      protected const string SOME_TEXT = "Hello, world!";
    }
    
  • ✅ Private constant fields are _camelCase

    public class MyObject {
      private const int _someNumber = 42;
      private const string _someText = "Hello, world!";
    }
    
  • ✅ Properties, Methods, Events, etc., are always PascalCase

    public class MyObject {
      public int MyProperty { get; set; }
      private string MyOtherProperty => "Hello, world!";
    
      private event EventHandler MyEvent;
    
      public void MyMethod() { }
    
      private void MyOtherMethod() { }
    }
    
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.1 414 5/17/2024
1.1.0 164 5/12/2024
1.0.1 227 3/31/2023
1.0.0 239 2/1/2023