IntelliJ IDEA 11.0 Web Help

11.0+

File | Settings | Code Style

Ctrl+Alt+SMeta Comma

settings

IntelliJ IDEA | Preferences | Code Style

Ctrl+Alt+SMeta Comma

settings

Use this page to customize the code style at the global level or at the project level. Settings at the global level are automatically applied every time IntelliJ IDEA generates, refactors, or reformats your code.

Settings at the project level apply to the current project only.

Common options

Item Description Level
Use Click this drop-down list to choose the level of configuring the code style settings. The available options are:
  • Global settings: Select this option to use global code style options for the project.
  • Per project settings: Select this option to use your own code style settings configurable at the level of the current project.
Export Click this button to save the current scheme under the specified name in the config\codeStyles folder under the IntelliJ IDEA home directory. Per project settings
Scheme name From this drop-down list, select the desired scheme. Global settings
Save as Click this button to save the current global scheme with a new name. Global settings
Delete Click this button to delete the current scheme.

Tip

The default scheme cannot be deleted.

Global settings
Copy to Project Click this button to create a copy of the current global scheme to the project level. After creating the copy, IntelliJ IDEA suggests to switch to this new scheme at the project level. Global settings
Set From This button is only available for language-specific code style settings.

Click this button to reveal the list of the languages code styles, and select one to copy style settings from.

Global settings

IntelliJ IDEA helps configure the following code styles:

Note

The Preview section for each language immediately shows results when you change settings.

See Also

Concepts:

Procedures:

Reference:

Web Resources: