Skip to content

Commit

Permalink
Adjust editor config to reflect cast conventions in C# libraries
Browse files Browse the repository at this point in the history
Most of our code includes a space after the cast, e.g. `(int) x`
instead of `(int)x`. This .editorconfig change means that will be
the default formatting when it's performed by the editor.
  • Loading branch information
jskeet committed Jun 24, 2022
1 parent 9f58ee3 commit 512f42c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion csharp/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ tab_width = 4
# New line preferences
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
trim_trailing_whitespace = true

[*.cs]
csharp_space_after_cast = true

0 comments on commit 512f42c

Please sign in to comment.