Please see this answer https://stackoverflow.com/a/74596206/2879473
In 2025, we can use the solution .editorconfig
for it.
For example, I want to place open braces at the end of lines.
[*.cs]
csharp_new_line_before_open_brace = never
csharp_new_line_before_else = false
csharp_new_line_before_catch = false
csharp_new_line_before_finally = false
csharp_new_line_before_members_in_object_initializers = false
csharp_new_line_before_members_in_anonymous_types = false
csharp_new_line_between_query_expression_clauses = false