Code Formatting

Format your code to your own set
of pre-predefined rules.
Code Formatting

General Page

Code Style settings contain a set of rules, defining how JustCode will format the code. They are grouped in pages according to their functional type. The General page contains options, which cannot be categorized in any of the other pages.

Indentation Page

The Indentation page contains settings, which can be used to define how JustCode formatter feature will indent certain code constructs. A preview pane at the bottom of the page will show an example of how the code will look like if a given setting is modified.

Spacing Page

This page contains a set of settings, which are used to define where to add or remove spaces in code. Grouped in sections, those settings allow for better customization and a better looking code. A preview pane at the bottom of the page shows an example of how the code will look like according to the current settings.

New Lines Page

A set of settings defining whether particular code constructs should be placed on a new line or not. A preview pane at the bottom of the page shows an example of how the code will look like according to the current settings.

Blank Lines Page

Settings defining how the code constructs will be separated. The separation is done by inserting / removing blank lines. For most of the constructs, different rules can be defined according to the type of the next construct.

Ordering Page

JustCode has a reordering code cleaner step. In this page the user can define the order of code constructs grouped by scope. Code cleaner reordering step will format the code according to these rules.

Brace Positions Page

That page summarizes the rules defining how the braces and body of blocks, array or object initializers can be formatted. There are several possible options and the preview pane at the bottom of the page shows an example of how the code will look like, depending on the different options.

Wrapping

When a code line exceeds a given length or a given construct should be split in multiple lines, JustCode uses wrapping rules. The rules are grouped in sections by code construct. Each group defines how and when the code construct should be wrapped and how to indent parts of that construct, which will go on a new line. The preview pane at the bottom of the page shows how the code will look like according to the current settings.

Using Directives

Rules defining a set of using directives, which should always be imported and a set of using directives, which should always be kept.

Naming Conventions

Naming Conventions define how JustCode  names code constructs or whether the analysis should report warnings about incorrect naming.
Product Families