可以在两个 Intellij 实例上打开同一个项目 IDE

Is possible open the same project on two instances of Intellij IDE

我有一个分布式项目,我需要同时调试我的应用程序的两个节点。为此,我希望打开两个 Intellij 实例,可以吗?

我不这么认为。您可以做的一件简单的事情是同时打开两个不同的主要 版本 (例如 2015 年和 2016 年),或者如果您有终极版,您也可以安装社区版并同时拥有这两个版本同时打开。或者,如果您使用的是社区版,则可以只安装一次终极版本:)

当然,第二种方法的缺点是您可能没有项目所需的一些插件。

有关于启动两个 IntelliJ 实例的主题Start two instances of IntelliJ IDE

根据我的经验,一个例子是不可能的

只需打开不同文件夹级别的每一个。

例如:项目 A 有 2 个文件夹(一个在另一个文件夹中),在第二个文件夹中有代码。然后打开文件夹 1 中的一个实例和文件夹 2 中的另一个实例。

通过选择在新 window 中打开来打开每个实例 window..simple.

我发现这真的很有帮助:

You can split the editor view vertically/horizontally, this will display the same file in both splits, then you can drag one of the tabs outside of the IDE to create a float editor window.

Another way to open multiple editors for the same file is to select the file in the Project view and press Shift+Enter.

来源:Serge Baranov 在 this thread

中的回应

仅供浏览此处的新用户使用。您可以将所需的代码拖放到 android studio 之外。