Share settings

Hey,

I would like to share some settings with my whole team, especially:

- Code Style

- Inspections

- Dictionaries

- File templates

- Live templates

Is it possible to share this settings using source control??? If yes, which file should I add???

Also, should .idea catalog be added to source control??

Greetings, Piotr

6 comments

Hi Piotr,

Check out this document: http://devnet.jetbrains.net/docs/DOC-1186

AppCode projects have ".idea directory based format"

Hope it helps,
-Eugene

0

Hey,

Thanks for a link. I followed instructions and included .idea directory (except workspace.xml) in repository, changed some project settings (code style, inspections, etc), committed it and pulled changes in other repository. Unfortunately settings changes was not propagated. Any ideas???

Greetings, Piotr

0

Could you please provide some details:
- have you created new scheme in the CodeStyle settings, copying it the project?
- have you created the new Inspections profile - shared or not?
- have you added all new-created files under .idea to vcs?

I've checked that the project settings sharing works for me generally, but the schemes selecting may look confusing.
It would be nice to get more information to understand the issue.

0

Hey Irina,

I've tested project settings sharing once again and it turns out that it works just fine. Sorry for making troubles, I must have had misconfigured something earlier.

I've got one question though, is it possible to also share live and file templates???

Greetings, Piotr

0

Hi Piotr,

thank you for reply.
The Live and File Templates (and other settings that are not project-specific and are changed on the IDE level) can be shared using File | ExportSettings... action.
Invoke File | ExportSettings... from the main menu and check the desired options in the appeared list. As a result the settings.jar file is createdwith teh specified options settings. It can be later imported via File | ImportSettings... by other team members.

0

Thanks Irina,

I will try that, but it would be super cool to have ability to share this settings via including some file in source control. File templates and live templates are very helpful in maintaining code consistency throughout the project.

Greetings, Piotr

0

Please sign in to leave a comment.