Reformat C# code
The extensive set of code formatting rules in C# has a default configuration that takes into account numerous best practices, but every detail of formatting rules can be configured in .editorconfig files.
To reformat code, press ⌥ ⇧ F or choose
from the menu. If there is a selection, only the selection is reformatted; if there is no selection, JetBrains Fleet will reformat the whole file.Specific EditorConfig properties that control code formatting are listed in the following topics:
- EditorConfig properties for C#: Blank Lines
- EditorConfig properties for C#: Braces Layout
- EditorConfig properties for C#: Syntax Style
- EditorConfig properties for C#: Tabs, Indents, Alignment
- EditorConfig properties for C#: Line Breaks
- EditorConfig properties for C#: Spaces
Last modified: 19 February 2024