Tabs and Indents
| Item | Description |
|---|---|
| Use tab character | If this check box is selected, tab characters are used:
Otherwise, spaces are used instead of tabs. |
| Smart tabs | If this check box is selected, IntelliJ IDEA inserts tabs for indentation and reformatting,
but fine alignment to a necessary column is done
only
via spaces. This is done in order to preserve visual
representation of the source code, when the
Tab Size
is changed.
If this check box is not selected, then spaces are used for alignment if necessary. This check box is available if the Use Tab Character check box is selected. |
| Tab size | In this text box, specify the number of spaces included in a tab. |
| Indent | In this text box, specify the number of spaces (or tabs if the Use Tab Character check box is selected) to be inserted for each indent level. |
| Continuation indent | In this text box, specify the number of spaces (or tabs if the Use Tab Character check box is selected) to be inserted at the next line in case of a construct break. |
Other
Arrangement
| Item | Description |
|---|---|
| Grouping Rules | Use this area to set the grouping rules.
|
| Matching rules | Use this area to define elements order as a list of rules, where every rule has a set of matches such as
modifier or type.
|
| Empty rule | Use this window to create a new matching rule or edit an existing one.
You can select from the following filters:
|
| This icon appears when you select Order by Name in Order option. The icon indicates that the items in this rule are alphabetized. |
Android
| Item | Description |
|---|---|
| Use custom formatting settings for Android XML files | Use this check box to set a custom formatting for the Android XML files. This might be helpful if you need to format
Android files differently from other XML files or need to use specific Android formatting options. If this check box is not selected, the default XML files formatting is applied. |
| AndroidManifest.xml | Use this area to set the following formatting for AndroidManifest.xml:
|
| Layout Files | Use this area to set the following formatting for the layout files:
|
| Value Resources Files and Selectors | Use this area to set the following formatting for value resource files and selectors:
|
| Other XML resource files | Use this area to set Wrap attributes for other XML resource files. See the available options. |
Set From
Click this link to reveal the list of languages to be used as the base for the current language code style. So doing, only the settings that are applicable to the current language are taken. All the other settings are not affected.
This link appears in the upper-right corner of the language-specific code style page, when applicable.
Click Reset to discard changes and return to the initial set of code style settings.

- use this button to add a rule. The
- use this button to remove the rule from the list.
- use this button to edit an existing rule. To see this button, navigate to the rule that
you want to edit and click on the button. In pop-up window that opens, modify the rule fields.
- use these buttons to move the selected rule up or down.
. The match is performed
against the entire name.