c# – Format Fluent API code from EF in Visual Studio 2022

The formatting options in Visual Studio can be found under Tools > Options > Text Editor > C# (or any other supported language), but afaik VS doesn’t offer, what you want.

I use Jetbrains Resharper to add more formatting options to my ide. Unfourtunately, it is not free and has a noticable performance impact (at least when editing large files).
Though it does support the requested “one dot per line” formatting (“wrap chained method calls”), all follow-up-rows are indented to the same level. Individual formatting of selected methods is not possible.

Read more here: Source link