Is there an option in Visual Studio or a tool (a plugin for VS?) to automatically format .csproj files if they get messed up after eg. a merge conflict resolution? Preferably format them the same way as Visual Studio does when it creates them. Maybe there is an option for that in ReSharper that I don't know about?
I have tried the command-line tool organize-csproj but it has a range of inconveniences - requires .NET Core 3.1 runtime installed, adds comments to the output .csproj, adds an XML declaration at the top and does not insert extra line breaks after each main element (after PropertyGroup or ItemGroup) like VS does. Its configuration doesn't seem to let me change that behavior either.
You can specifiy formatting options (e.g. identation) as for other files in the
.editorconfigfile. VS will normaly obey those rules. E.g., I have(as opposed to .cs files, where
indent_sizeis typically 4)