How to share (just) project code style, copyright, inspection settings with other IDEA users?

I'm new to IntelliJ and I'm using version 11.1.1 ultimate.

I'd like to share some settings with other IDEA users:
- code style
- copyright
- inspection profile

I don't want to commit all IDEA files because most of them can be generated as our project uses Maven.

So I've committed the following files:
.idea
  copyright
    Copyright.xml
    profiles_settings.xml
  inspectionProfiles
    Project_Default.xml
    profiles_settings.xml
  codeStyleSettings.xml

But when I checkout and create a new project as a Maven project, copyright and inspectionProfiles are over written.
Any advice?

Thanks

Cedric

3 comments
Comment actions Permalink

For code style and inspection profiles, you can configure them as application rather than project level profiles, export the settings, and have all your colleagues import them into their IntelliJ IDEA installations. For the copyright profiles, the only way to share them is to store a complete project in the version control system.

0
Comment actions Permalink

Thanks for your answer...

Do I also need to commit the file workspace.xml? It seems to change very often and it will add some noise to VCS logs :(

0
Comment actions Permalink

No, workspace.xml (as well as tasks.xml) contains a developer's local settings and must not be shared through the VCS.

0

Please sign in to leave a comment.