2

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.

Viraj
  • 5,083
  • 6
  • 35
  • 76

1 Answers1

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:

Lukas M.
  • 2,859
  • 23
  • 30