Although through different user interfaces, Eclipse and IntelliJ IDEA offer nearly the same set of coding styles for you to configure. Configuration takes place from the File -> Settings
|File → Settings|
Of particular relevance are the code style settings available for the Java language. Settings are grouped in different categories in Eclipse and IntelliJ IDEA. However as the next two screenshots show categories address nearly the same set of parameters.
Eclipse seems to have a few tabs compared to IntelliJ, but IntelliJ fits more settings in each tab.
Both Eclipse and IntelliJ IDEA offer a preview of the currently selected code styles, at least those that impact directly on code writing.
Both Eclipse and IntelliJ IDEA let you save all settings to a file. A settings file can then be imported later into another instance of the IDE. Note, though, that Eclipse has a direct Expor button to export code styles. In IntelliJ IDEA, instead, you export and import all IDE settings, including code style schemes. You select File ->
|File → Export Settings|
To import a previously saved settings file you select File -> Import Settings.
IntelliJ IDEA allows to export and import IDE settings so that all users on a team can share the same settings, but this doesn't solve the problem of teaching IntelliJ IDEA to apply the settings in use in Eclipse.