csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

[Feature Request] Format slnx files

Open connorjs opened this issue 7 months ago • 1 comments

Can/Should CSharpier format the XML-based .slnx files?


.NET has a new XML-based solution file: SLNX (blog post).

While it still seems “preview,” I suspect it finalizes in .NET 10. Furthermore, it is XML-based, so I do not think formatting would change with any slnx-feature changes (but I may be wrong!).

I love the .props and .csproj formatting CSharpier added recently, and I think formatting the .slnx files would fit well with the goals of CSharpier given it already understands XML (or .NET XML).

connorjs avatar Jun 09 '25 17:06 connorjs

Good call! I didn't think of this when I found out about slnx recently. If you want a workaround for now - you can add the slnx extension to an editorconfig or csharpierconfig file. I can get this added for the next release.

belav avatar Jun 09 '25 18:06 belav

Added in #1648

belav avatar Jul 05 '25 15:07 belav