Home> Products> ReSharper> Features> Code Formatting

Code Formatting

Click a button to display features available in specific edition.



      Syntax Highlighting

      ReSharper extends the default highlighting support of Visual Studio with highlighting for fields, local variables, types, and more, in both C# and VB.NET. For example, the Syntax Highlighting feature allows you to easily distinguish between local variables and fields in your code. To switch on ReSharper's highlighting, click ReSharper -> Options menu, go to Code Inspection and select Color Identifiers.

      to the top

      Quick Code Reformatting

      ReSharper can reformat an arbitrary selected block of code, all code in the current file, all files in a directory, or even the entire project or solution according to your Code Style preferences. To reformat the code in the current file, simply press Ctrl + Alt + F in the editor.

      to the top

      Namespace Import Directives Optimization

      To make your code more readable, you can exclude unused or redundant using directives from your C# and Visual Basic .NET source code files. With ReSharper, this tedious process is reduced to a few keystrokes. Simply press Ctrl + Alt + O in the editor to perform the action. As an option, ReSharper can also shorten unnecessary (in the presence of using/Import directives) qualified references to the type names for you.

      to the top

      Code Style Configuration and Sharing

      With more than 60 options, you can fully customize the way ReSharper reformats your code when it expands Live Templates, generates new code, automatically places braces, completes code, or when you explicitly request code reformatting.

      All style settings can be easily shared among team members.

      to the top

      Automatic Member Layout (C# only)

      Let ReSharper automatically reorder your type members according to a default or custom XML pattern.

      to the top


          Syntax Highlighting


          ReSharper extends the default highlighting support of Visual Studio with highlighting for fields, local variables, types, and more. For example, the Syntax Highlighting feature allows you to easily distinguish between local variables and fields in your code. To switch on ReSharper's highlighting, click ReSharper -> Options menu, go to Code Inspection and select Color Identifiers.

          to the top

          Quick Code Reformatting

          ReSharper can reformat an arbitrary selected block of code, all code in the current file, all files in a directory, or even the entire project or solution according to your Code Style preferences. To reformat the code in the current file, simply press Ctrl + Alt + F in the editor.

          to the top

          Namespace Import Directives Optimization

          To make your code more readable, you can exclude unused or redundant using directives from your C# and Visual Basic .NET source code files. With ReSharper, this tedious process is reduced to a few keystrokes. Simply press Ctrl + Alt + O in the editor to perform the action. As an option, ReSharper can also shorten unnecessary (in the presence of using directives) qualified references to the type names for you.

          to the top

          Code Style Configuration and Sharing

          With more than 60 options, you can fully customize the way ReSharper reformats your code when it expands Live Templates, generates new code, automatically places braces, completes code, or when you explicitly request code reformatting.

          All style settings can be easily shared among team members.

          to the top

          Automatic Member Layout

          Let ReSharper automatically reorder your type members according to a default or custom XML pattern.

          to the top


              Syntax Highlighting


              ReSharper extends the default highlighting support of Visual Studio with highlighting for fields, local variables, types, and more. For example, the Syntax Highlighting feature allows you to easily distinguish between local variables and fields in your code. To switch on ReSharper's highlighting, click ReSharper -> Options menu, go to Code Inspection and select Color Identifiers.

              to the top

              Quick Code Reformatting

              ReSharper can reformat an arbitrary selected block of code, all code in the current file, all files in a directory, or even the entire project or solution according to your Code Style preferences. To reformat the code in the current file, simply press Ctrl + Alt + F in the editor.

              to the top

              Namespace Import Directives Optimization

              To make your code more readable, you can exclude unused or redundant using directives from your C# and Visual Basic .NET source code files. With ReSharper, this tedious process is reduced to a few keystrokes. Simply press Ctrl + Alt + O in the editor to perform the action. As an option, ReSharper can also shorten unnecessary (in the presence of Import directives) qualified references to the type names for you.

              to the top

              Code Style Configuration and Sharing

              With more than 60 options, you can fully customize the way ReSharper reformats your code when it expands Live Templates, generates new code, automatically places braces, completes code, or when you explicitly request code reformatting.

              All style settings can be easily shared among team members.

              to the top