I would like to share some settings with my whole team, especially:
- Code Style
- 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??
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???
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.
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???
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.
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.