Official comment

Hi Jakob.

In general - yes, you've found the right article.

Which project settings do you want to share specifically?

Code formatting, file headers and a common dictionary.

Okay, how does it then work if these settings are shared but settings also exists in the project folde? Which settings are used?

Thanks :)


Code formatting settings can be shared via File | Export Settings -> Code Style (schemes), saving the .jar, then File | Import Settings (as well as via Settings Repository plugin which is described in the article).

Note that there are project-level and IDE-wide code style schemes. Project ones are stored in .idea folder while IDE-wide reside in ~Library/Preferences/AppCode<version>/codestyles

When you import settings via Settings Repository, it means that effectively you import IDE-wide settings. In case you want to share specific project settings, you need to share contents of .idea folder. That applies to dictionaries (project-level ones are stored in .idea folder).

In case you share IDE-wide settings via Settings Repository plugin, there are options to merge them or overwrite (either local or remote), so that depends on user choice.

Settings in .idea folder take precedence over IDE-wide.

As for file headers, did you mean custom file header templates? If yes, you should be able to share those via File | Export Settings -> File templates.



Please sign in to leave a comment.