ReSharper for Visual Studio Code Help

Reformat 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 Format Document from the context menu. If there is a selection, press ⌘K ⌘F or choose Format Selection from the context menu to reformat only the selection.

Specific EditorConfig properties that control code formatting are listed in the following topics:

15 May 2025