How to use code style settings between developers in IntelliJ

I would like all the developers in my team to use the same default code style settings. We all use IntelliJ 11+ as our development environment, and we use git as our version control system.

What is the easiest way to make sure they all use the same settings? I thought that there would be a way to check the style settings in the project and their editors would detect them automatically, but that doesn't seem to be the case.

PS. I don’t mind if developers deliberately override some default settings with their own settings, but I want to make sure that we all at least start with a common set of default settings.

+49
intellij-idea
Jan 31 '12 at 21:47
source share
1 answer

The code style can be copied to the project and saved in .idea/codeStyleSettings.xml for shared version control :

Copy to project . Click this button to create a copy of the current global schema at the project level. After creating a copy of IntelliJ, IDEA suggests switching to this new scheme at the project level.

+54
Feb 01 2018-12-01T00:
source share



All Articles