How to share config between developers?

Q: Can we check in (parts of) the .idea folder as in VS Code?

https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

  • All files under the .idea directory in the project root except the items that store user-specific settings:
    • workspace.xml
    • usage.statistics.xml
    • shelf directory
    • All the .iml module files (can be located in different module directories) -> applies to IntelliJ IDEA

https://www.jetbrains.com/help/idea/creating-and-managing-projects.html#share-project-through-vcs

SO says

https://stackoverflow.com/questions/43198273/which-files-in-idea-folder-should-be-tracked-by-git?r=SearchResults&s=1%7C91.0115

Jetbrains official gitignore

https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore

But but I just want to set required plugins for the whole team

We need to specify “required plugins” ((Preferences | Build, Execution, Deployment | Required Plugins)).