是否可以在 Eclipse 中处理远程文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3473154/
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 14:59:35  来源:igfitidea点击:

Is it possible to work on remote files in Eclipse?

eclipse

提问by EmmyS

I'm looking into using Eclipse as a dev environment for PHP projects, but it's pretty huge and I'm not sure where to look for answers. I want to be able to work on remote files from within the client - i.e., rather than using an FTP client to download copies from our remote development server, working on them locally, and then having to upload them to test, I want to be able to work directly on the remote files. I know many development environments allow this - my colleagues who work on Macs use Coda, which allows them to define sites and access all files via an explorer tree. I'm currently running Bluefish on Ubuntu, and it also allows this.

我正在考虑使用 Eclipse 作为 PHP 项目的开发环境,但它非常庞大,我不确定在哪里寻找答案。我希望能够在客户端内处理远程文件 - 即,而不是使用 FTP 客户端从我们的远程开发服务器下载副本,在本地处理它们,然后必须上传它们进行测试,我想成为能够直接处理远程文件。我知道很多开发环境都允许这样做——我在 Mac 上工作的同事使用 Coda,它允许他们定义站点并通过资源管理器树访问所有文件。我目前在 Ubuntu 上运行 Bluefish,它也允许这样做。

I've downloaded and installed Helios, but can't seem to find an obvious menu entry for handling remote files. Can anyone point me in the right direction?

我已经下载并安装了 Helios,但似乎找不到处理远程文件的明显菜单项。任何人都可以指出我正确的方向吗?

Edited to add: we don't use version control at this point, so I'm not looking for any kind of Subversion tie-in.

编辑添加:此时我们不使用版本控制,所以我不是在寻找任何类型的 Subversion 搭配。

回答by Tom Crockett

The RSE (Remote System Explorer)may be what you're looking for. It's an implementation of the Eclipse File Systemframework which allows resources in your workspace to be backed in reality by remote resources.

RSE(远程系统资源管理器)可能是你在找什么。它是Eclipse 文件系统框架的一个实现,它允许您的工作区中的资源实际上由远程资源支持。

回答by vikmalhotra

Since you are working on Ubuntu, you can have a look over here

既然你在 Ubuntu 上工作,你可以看看这里

回答by Aidanc

Perhaps this will be of some help

也许这会有所帮助

http://www.jcraft.com/eclipse-sftp/

http://www.jcraft.com/eclipse-sftp/

I've never used it myself but it seems to do what you're looking for syncing and editing files over SFTP.

我自己从未使用过它,但它似乎可以通过 SFTP 执行您正在寻找的同步和编辑文件。

回答by karlphillip

I usually develop using remote Eclipse. Use ssh -Y user@serverto login and try executing eclipse on that shell, it should open on your computer if you have X properly configured.

我通常使用远程 Eclipse 进行开发。使用ssh -Y user@server登录并尝试对壳执行的日食,它应该如果你有X正确地配置您的计算机上打开。

Of course, this Eclipse instance will have access to the remote server files.

当然,这个 Eclipse 实例将有权访问远程服务器文件。

回答by zakmck

This is more general than Eclipse: http://curlftpfs.sourceforge.net. I usually use the SSH/SFTP version (safer): http://fuse.sourceforge.net/sshfs.html

这比 Eclipse 更通用:http: //curlftpfs.sourceforge.net。我通常使用 SSH/SFTP 版本(更安全):http: //fuse.sourceforge.net/sshfs.html

Both are based on FUSE (http://fuse.sourceforge.net/)

两者都基于 FUSE ( http://fuse.sourceforge.net/)

回答by Michael Sebastian

Install eclipse plugin Remote System Explorer End-User Runtime. See video at How to Edit codes and files remotely with Eclipse.

安装 eclipse 插件 Remote System Explorer End-User Runtime。请参阅如何使用 Eclipse 远程编辑代码和文件的视频。

Also, check out how to configure the remote connection: Using Remote Connections.

此外,请查看如何配置远程连接:使用远程连接