You can use code style schemes: groups of settings that you can configure using the IDE interface, export, and share with other members of your team.
IntelliJ IDEA offers two ways of defining code style rules.
IntelliJ IDEA helps you maintain the required code style by formatting your code for you according to the code style rules. If a company has certain coding guidelines, you have to follow them when creating source code.