How to put IntelliJ/Pycharm settings under version control?

前端 未结 2 607
情书的邮戳
情书的邮戳 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条回答
  •  梦毁少年i
    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.

提交回复
热议问题