Export/import project structure?

戏子无情 提交于 2019-12-13 14:42:18

问题


Just asked at Jetbrains forum, but it isn't too much activity there... so I haven't got any answer.

Is it possible to copy project settings to another project?, I'd like to export project modules, dependencies, run configurations and so on.

If IntelliJ can't do it, is there any plugin which has this feature?


回答1:


That's a good question, actually I have same problem when I need to clone again my project from Mercurial SCM. AFAIK there is no standard JetBrains way.

But what I am doing usually - just copy following folders/files into the new project:

  • *.iml (module description files)
  • .idea folder
  • maybe *.ipr too. I'm using maven, therefore I don't have such files.

Anyway all those intellij's configuration files are plain XML's. So if your target project is different by the structure - you can prepare them manually.

UPD Also whether you will need to share configuration between team members - check this plugin: IntelliJ Configuration Server Plugin

UPD 2 Plugin above is deprecated. Now they have officially integrated it into intelliJ distributions. https://github.com/JetBrains/intellij-community/tree/master/plugins/settings-repository



来源:https://stackoverflow.com/questions/28676327/export-import-project-structure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!