进出口项目结构? [英] Export/import project structure?

查看:73
本文介绍了进出口项目结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需在 Jetbrains论坛中提问,但是那里没有太多活动……所以我没有任何答案.

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.

如果IntelliJ无法做到这一点,那么是否有任何具有此功能的插件?

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

推荐答案

这是一个好问题,实际上,当我需要再次从Mercurial SCM克隆我的项目时,我遇到了同样的问题.AFAIK没有标准的JetBrains方式.

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 (模块描述文件)
  • .idea 文件夹
  • 也可能是 *.ipr .我正在使用Maven,因此没有此类文件.
  • *.iml (module description files)
  • .idea folder
  • maybe *.ipr too. I'm using maven, therefore I don't have such files.

无论如何,所有这些intellij的配置文件都是纯XML的.因此,如果您的目标项目的结构不同-您可以手动准备它们.

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 另外,是否需要在团队成员之间共享配置-检查此插件: IntelliJ配置服务器插件

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

UPD 2 上面的插件已弃用.现在,他们已将其正式集成到智能发行版中. https://github.com/JetBrains/intellij-community/树/主/插件/设置存储库

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

这篇关于进出口项目结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆