Forked from collinbarrett/TypeMemberLayout.xaml
Last active
February 26, 2026 13:02
-
-
Save luuksommers/2518327ea8ba6e915ca002f409be2146 to your computer and use it in GitHub Desktop.
CalderCop's Awesome File Layout for Rider
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-16"?> | |
| <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> | |
| <TypePattern DisplayName="Non-reorderable types" Priority="99999999"> | |
| <TypePattern.Match> | |
| <Or> | |
| <And> | |
| <Kind Is="Interface" /> | |
| <Or> | |
| <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> | |
| <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> | |
| </Or> | |
| </And> | |
| <Kind Is="Struct" /> | |
| <HasAttribute Name="System.Runtime.InteropServices.StructLayoutAttribute" /> | |
| <HasAttribute Name="System.Runtime.InteropServices.ExtendedLayoutAttribute" /> | |
| <HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" /> | |
| </Or> | |
| </TypePattern.Match> | |
| </TypePattern> | |
| <TypePattern DisplayName="CalderCop's Awesome File Layout" RemoveRegions="All"> | |
| <TypePattern.Match> | |
| <Or> | |
| <Kind Is="Class" /> | |
| <Kind Is="Struct" /> | |
| <Kind Is="Interface" /> | |
| </Or> | |
| </TypePattern.Match> | |
| <Entry DisplayName="Constants"> | |
| <Entry.Match> | |
| <Kind Is="Constant" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Fields"> | |
| <Entry.Match> | |
| <Kind Is="Field" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Constructors"> | |
| <Entry.Match> | |
| <Kind Is="Constructor" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Destructors"> | |
| <Entry.Match> | |
| <Kind Is="Destructor" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Teardown Methods"> | |
| <Entry.Match> | |
| <And> | |
| <Kind Is="Method" /> | |
| <Or> | |
| <ImplementsInterface Name="System.IDisposable" /> | |
| <ImplementsInterface Name="System.IAsyncDisposable" /> | |
| </Or> | |
| </And> | |
| </Entry.Match> | |
| </Entry> | |
| <Entry DisplayName="Delegates"> | |
| <Entry.Match> | |
| <Kind Is="Delegate" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Events"> | |
| <Entry.Match> | |
| <Kind Is="Event" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Enums"> | |
| <Entry.Match> | |
| <Kind Is="Enum" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Interfaces"> | |
| <Entry.Match> | |
| <Kind Is="Interface" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Properties"> | |
| <Entry.Match> | |
| <Kind Is="Property" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Indexers"> | |
| <Entry.Match> | |
| <Kind Is="Indexer" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Methods"> | |
| <Entry.Match> | |
| <Kind Is="Method" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Structs"> | |
| <Entry.Match> | |
| <Kind Is="Struct" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| <Entry DisplayName="Classes"> | |
| <Entry.Match> | |
| <Kind Is="Class" /> | |
| </Entry.Match> | |
| <Entry.SortBy> | |
| <Access Order="Public Internal ProtectedInternal Protected Private" /> | |
| <Static /> | |
| <Readonly /> | |
| </Entry.SortBy> | |
| </Entry> | |
| </TypePattern> | |
| </Patterns> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment