可以同时运行 2 个完全独立的 Eclipse 实例吗?
我目前正在将 Eclipse 用于 Java 和 Python(使用 PyDev)。我经常发现我打开了一个包含大量文件的 Java 项目,然后由于某种原因我必须切换到 Python 项目一段时间。
我想让我的 Java 项目保持原样,并且我不想在同一个位置打开大量 Python 文件,因为这样我一次打开的文件太多了。
有什么办法可以让我的 Java 项目保持原样,并打开一个全新的 Eclipse 会话吗? (类似于使用浏览器的方式)
I am currently using Eclipse for both Java and Python (with PyDev). I often find that I have one Java project open with lots of files, and then for some reason I have to switch to a Python project for a bit.
I want to leave my Java project the way it is, and I don't just want to open tons of Python files in the same place because then I have too much open at once.
Is there any way I can leave my Java project exactly the way it is, and open a completely new session of Eclipse? (sort of the way you can do with a browser)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
如果您希望两个实例访问两个工作区,只需运行 eclipse 的第二个副本。
如果您希望两个窗口访问同一个工作区,您可以使用 Window -> 创建第二个窗口。 新窗口
If you want two instances accessing two workspaces, just run a second copy of eclipse
If you want two windows accessing the same workspace, you can create a second window with Window -> New Window
是的,你可以。否则,没有人能够开发 Eclipse 插件。
您必须在启动时取消选中默认工作区。不能让两个 Eclipse 实例引用同一工作区。
Yes, you can. Otherwise, no one could develop an Eclipse plug-in.
You have to uncheck the default workspace on startup. You can't have two instances of Eclipse referencing the same workspace.
是的,您可以同时运行两个 Eclipse 实例。但是,他们不能同时访问同一个工作区。如果您尝试执行此操作,第二个实例将在启动时抱怨并要求您选择其他工作区。
另请记住,Eclipse 往往是一个非常消耗内存的应用程序。同时运行两个可能会给您的系统带来很大的压力。
Yes, you can have two instances of Eclipse running at the same time. However, they can't both access the same workspace at the same time. If you try to do this, the second instance will complain about it on startup and ask you to choose a different workspace.
Also bear in mind that Eclipse tends to be a very memory-hungry application. Running two at once may put a significant strain on your system.
这就是我所做的。
This is what I did.
只要每个项目都使用自己的工作区,是的,您绝对可以。当然,这假设您的系统有足够的内存和 CPU 资源来容纳多个实例。 (我一直这样做!)
As long as each project uses its own workspace, yes, you absolutely can. This assumes that your system has sufficient memory and CPU resources to accommodate multiple instances, of course. (I do it all the time!)
我能够通过复制整个工作区文件夹并使用该文件夹运行 eclipse 的新副本来调试两个同步实例。
I was able to debug two simultaneous instances by copying the whole workspace folder and running a new copy of eclipse using that folder.
如果您想为不同的项目打开不同的工作空间,则窗口 ->新编辑;在这里您可以打开不同项目的不同工作空间。
If you want to open different work spaces with different projects then Window -> New Editor; here you can open different work space with different project.