Skip to content

Instantly share code, notes, and snippets.

View Jakob-PB's full-sized avatar

Jakob-PB

View GitHub Profile
@Jakob-PB
Jakob-PB / csharp-layout-improved.xml
Created November 7, 2020 08:35
C# layout templates for Rider code cleanup. Covers Unity classes and standard C# classes. Focused on clearly delineating member types and the public interface of a class via regions.
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
<TypePattern DisplayName="Non-reorderable types">
<TypePattern.Match>
<Or>
<And>
<Kind Is="Interface" />
<Or>
<HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" />
<HasAttribute Name="System.Runtime.InteropServices.ComImport" />
</Or>