Code Cleaning

Effortless elimination of any dead code
and redundancies
Code Cleaning

Code Cleaning Options

With only few clicks you can change thousands of lines of code to match your requirements. Just right-mouse-click in the Solution Explorer on your solution and select Just Clean All... from the menu or you can do it folder by folder and project by project. You will see a window with available options. Two default profiles are provided (Basic and Full), but custom profiles can also be created.

Some examples.
If you select Format Code, your code will be formatted based on the settings in JustCode -> Options -> Code Style.

Select Reorder Using Directives to alphabetically reorder using directives

The Introduce File Header Text cleaning step will add the specified header in JustCode -> Options -> Code Style -> Common to all your files.

Useless dead code and redundancies can easily be removed with: Remove redundant casts, Remove empty statements, Remove redundant overrides, Remove unused variables, Remove unused private members and Remove unused using directives.

Find out why refactoring is an efficient process for code cleaning from this blog post.

Selected Formatting Rules

    The JustCode formatter supports C#, CSS, JavaScript, VB.NET, Razor and XML/XAML.
  • General
  • Indentation
  • Spacing
  • New Lines
  • Blank Lines
  • Ordering
  • Brace Positions
  • Wrapping
  • Using Directives
  • Naming Conventions