eclipse 如何在不同的计算机上使用eclipse工作区

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5963381/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 16:17:26  来源:igfitidea点击:

how to use eclipse workspace on different computers

eclipse

提问by onedevteam.com

I have 3 developer machines (office desk, office laptop and home laptop) and I would like to keep my eclipse workspace and projects on usb drive and use it on all 3 computers... is this possible and how?

我有 3 台开发人员机器(办公桌、办公室笔记本电脑和家用笔记本电脑),我想将我的 eclipse 工作区和项目保留在 USB 驱动器上,并在所有 3 台计算机上使用它......这可能吗?如何?

采纳答案by krookedking

Though it is possible by indicating the folder on your usb to be your workspace, I'd recommend using version controlif you have access to some server. This way you can work on your projects anywhere, have constant backup, and keep track of the changes.

尽管可以将 USB 上的文件夹指定为您的工作区,但如果您有权访问某些服务器,我建议您使用版本控制。这样你就可以在任何地方处理你的项目,有持续的备份,并跟踪变化。

回答by Tope

Try using dropbox folders for your workspace (with their packrat feature its even better). That will keep all your files up to date :D.

尝试为您的工作区使用 dropbox 文件夹(他们的 Packrat 功能甚至更好)。这将使您的所有文件保持最新:D。

回答by crafter

It's possible. Change your workspace to point to your shared drive. This is easier on OS's like linux as you can mount the USB drive to a specific directory.

这是可能的。更改您的工作区以指向您的共享驱动器。这在像 linux 这样的操作系统上更容易,因为您可以将 USB 驱动器安装到特定目录。

Or, do what I do and copy the workspace directory for specific projects from one machine to another. This was covered here : How to share eclipse configuration over different workspaces

或者,按照我的操作,将特定项目的工作区目录从一台机器复制到另一台机器。这在此处进行了介绍: 如何在不同的工作区中共享 Eclipse 配置

回答by Sandman

Yes it is. Copy the workspace folder to your usb drive and open the workspace from any Eclipse installation you want to.

是的。将工作区文件夹复制到您的 USB 驱动器,并从您想要的任何 Eclipse 安装中打开工作区。

By the way, it may be a better idea to use a version controlsystem. Sure, you'd have to synchronize your workspace every time you make a change in the code and commit it, but usb drives can get lost, or stolen, and I'm sure you wouldn't want to lose all of your projects if you lost your usb drive.

顺便说一句,使用版本控制系统可能是一个更好的主意。当然,每次更改代码并提交时,您都必须同步您的工作区,但 USB 驱动器可能会丢失或被盗,而且我相信您不会希望丢失所有项目,如果你丢失了你的 U 盘。