I need to setup my project when it is opened in Intellij IDEA, the code format xml file should be auto set. I have created the file using Code Styles -> java -> Export to File feature. Now I have xml file which defined the custom java style and I intend to add this file as project source. When other team members open the project I need Intellij IDEA to load the java style from this given file automatically. Is this possible ? If so how ? I could not found a way to this from a search.
Asked
Active
Viewed 1,371 times
1 Answers
1
Open settings: Preferences | Editor | Code Style
There is small icon near to Scheme, after click you can:
You can copy the IDE scheme (Default) to the current project, using the Copy to Project... command.
and you see now in: .idea/codeStyles/
: codeStyleConfig.xml
and Project.xml
You can share settings with whole team by committing these files into version control repository (git for example).
You can also share run configurations - see How do I share IntelliJ Run/Debug configurations between projects?
(.idea\runConfigurations
)
See also:
- Sharing Your IDE Settings - https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html
- https://stackoverflow.com/a/46144716
- https://tips.seebrock3r.me/share-the-settings-with-the-whole-team-android-studio-protip-6-3cce16eb2ea4
- https://tips.seebrock3r.me/share-settings-with-the-team-a-year-later-e28c24fc07aa

Lukas M.
- 2,859
- 23
- 30