- Run configurations
- Code style settings
- Inspection profiles
- Version control settings
- File encoding settings
- Ant build configuration (if your project uses Ant)
Did you ever had to support a team member, because the application showed strange behaviour when run in his IDE and it turned out that he forgot to set one of the undocumented runtime parameters needed in the IDE runtime? Create a Shared Runtime configuration (Checkbox "Share configuration" in the Run/Debug Configurations dialog) and put it under version control. IDEA creates a file for each Shared Runtime configuration in the directory .idea/runConfigurations/.
If code quality is taken seriously in your project, configure the Code Style and the Inspection Profile and put the corresponding files .idea/projectCodeStyle.xml and the ones in .idea/inspectionProfiles/ under version control.
If your project uses Ant as build system and build scripts has been added to IDEA's Ant Build Tool, add the corresponding configuratin file ./idea/ant.xml to the VCS.
To share file encodings, VCS and IDEA compiler settings, add the files encodings.xml, vcs.xml and compiler.xml in .idea to the VCS. Finally, the file .idea/misc.xml should be added to the VCS.
Workspace-specific settings are kept in .idea/workspace.xml. Thus, this file should be ignored. As well as uiDesigner.xml if don't use IDEA's UI designer. IDEA creates these files after the project is opened the first time after checkout.
Things you can't share with version control:
Unfortunately, file templates available in the context menu New can't be shared, because they are saved in IDEA's configuration directory.
Keine Kommentare:
Kommentar veröffentlichen