How to put IntelliJ/Pycharm settings under version control?

前端 未结 2 606
情书的邮戳
情书的邮戳 2021-01-23 08:46

I\'m a frequent user of PyCharm and a number of the other JetBrains IDEs. I try to keep my settings synchronized across the different IDEs, but I\'m now considering moving to In

相关标签:
2条回答
  • 2021-01-23 09:05

    PyCharm (at least the Linux 4.X and 5.0 Pro versions) places its config files in a .idea dir under the project dir:

    $ find .idea/
    .idea/
    .idea/libraries
    .idea/libraries/Google_App_Engine_SDK.xml
    .idea/libraries/Generated_files.xml
    .idea/apartsw.iml
    .idea/misc.xml
    .idea/modules.xml
    .idea/runConfigurations
    .idea/runConfigurations/apartsw.xml
    .idea/encodings.xml
    .idea/vcs.xml
    .idea/inspectionProfiles
    .idea/inspectionProfiles/MyProject.xml
    .idea/inspectionProfiles/profiles_settings.xml
    .idea/watcherTasks.xml
    .idea/webResources.xml
    .idea/workspace.xml
    .idea/scopes
    .idea/scopes/scope_settings.xml
    .idea/dictionaries
    .idea/dictionaries/username.xml
    

    I added the entire dir with the exception of .idea/workspace.xml into the project's git repo, following JetBrains' PyCharm-specific and/or generic .idea-based Tools recommendations.

    0 讨论(0)
  • 2021-01-23 09:21

    I am using the Settings Repository plugin to syncronize settings between PyCharm and PhpStorm and it is working very well. It is actually designed with version control and team sharing in mind, see project repo on github and have built in support for conflict resolution, merge and overwriting remote or local.

    It does also support file system and, from what I can tell, what then is stored is the mirror version of the git repository.

    0 讨论(0)
提交回复
热议问题