用于在远程文件中搜索而不将文件存储到本地的 PHP IDE [英] PHP IDE for Search in remote file without store the files to local

查看:28
本文介绍了用于在远程文件中搜索而不将文件存储到本地的 PHP IDE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何好的 IDE 可以从远程文件中搜索单词或短语,而无需先存储/同步到我的本地计算机?

Are there any good IDEs which can search for a word or phrase from the remote files without storing/synchroning to my local computer first?

我尝试过Aptana,但它似乎无法做到这一点,但是远程文件系统很好(不存储到本地)

I have tried Aptana, but it doesn't seem to be able to do this but, the remote file system is good(not store to local)

我尝试过 Netbeans,它似乎总是先将文件存储到我的本地机器.

I have tried Netbeans, which seems to alway store files to my local machine first.

我希望有(最好是免费的)IDE 可以在我的远程主机上运行搜索字符串?

I hoping that there are (preferably free) IDEs out there that can run searches for strings on the my remote host?

推荐答案

我看到了三个可能的(常见)选项:

I see three possible (common) options:

  • 通过 ssh 连接并使用 vim.我会那样做.
  • 通过 scp(Linux 上的 sshfs)或 ftp(Linux 上的 curltpfs)挂载远程文件系统.这将对您隐藏文件传输,但他们在后台完成.所以和让 IDE 做 ftp 工作差不多
  • 让 IDE(无论您喜欢什么)在远程主机上运行并使用 RemoteDesktop 或其他方式.
  • Connect via ssh and use vim. I would do that.
  • Mount the remote file system via scp (sshfs on Linux) or ftp (curlftpfs on Linux). This will hide file transmission from you but they will be done it background. So it's much the same as let the IDE do the ftp work
  • Have the IDE (whatever you prefer) running on the remote host and using RemoteDesktop or somewhat else.

我更喜欢 ssh + vim :)

I prefer ssh + vim :)

使用 ssh 可能是最安全和最常用的方法.较少的数据密集型将像您已经使用的那样将 FTP 与 Aptana 一起使用(期望 Aptana 只传输更改的文件).(这也可能取决于文件大小和情况,但对于通常的代码文件,我会这么说)

Using ssh may be the most secure and usual approach. The less data intensive will be using FTP with Aptana as you already doing (Expecting that Aptana just transmitts changed files). (Also this may depend on the filesize and circumstances but with usual code files I would say so)

如果您在 Windows 上工作,expandrive 可能是一种方法.它支持通过 FTP、SSH 或 SFTP 在 Windows 中将远程服务器挂载到本地网络驱动器.IDE 会将该文件夹视为本地文件夹.你应该试一试.

If you are working on Windows expandrive might be an approach. It supports mounting remote servers a local netdrive in Windows via FTP, SSH or SFTP . An IDE would see that folder like a local folder. You should give it a try.

更新:试图解释更多......

Update: Trying to explain more....

如果您想在远程文件中搜索,您有两个通用选项:

If you want to search in a remote file, you have two general options:

  • 搜索程序在本地运行,需要来自远程(文件)的输入数据
  • serach 程序远程运行.您将向它发送参数,它会发回搜索结果

没有其他选择.

在 IDE 中,这意味着:要么使用 IDE 本身的搜索功能,要么意味着搜索程序 (IDE) 在本地运行,然后必须下载/同步/网络挂载文件.或者您远程执行 grep 或其他任何操作并显示结果.然后主要是ssh.您的 IDE 将需要一个 ssh 插件.例如 Eclipse 就有一个.(记住名字是 RSE.Remote Systems Explorer)(它也适用于 Aptana).

In IDE speaks it means: Either you use the search functionality of your IDE itself, means the search program (IDE) runs locally, then the file has to be downloaded / sychnronized / netmounted whatever. Or you execute grep or whatever remotely and display the results. Then it mostly comes to ssh. Your IDE will need a ssh plugin for that. Eclipse for example has one. (Think to remember the name was RSE. Remote Systems Explorer) (It will work with Aptana too) .

这篇关于用于在远程文件中搜索而不将文件存储到本地的 PHP IDE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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