How to autoload code style from git?



I exported Intellij Idea code style XML from Settings > Editor > Code Style > Java.  I want to share it with the rest of team. Would it be possible to make Intellij automatically load it? For example if I put the file under right directory with right file name in git repository, would it pick it up? .idea directory is not synced to git. For example in our project we get automatically run configurations from git. But I don't know how this magic works.  Probably intellij is looking for some specific file/directory names? And that is why I was wondering if it's possible to automatically get this code style conf too from git?


Please sign in to leave a comment.