远程编程 [英] Remotely Programming
问题描述
我要做的是编辑我的源代码在Windows机器上,并保存时自动将文件复制到Linux系统。我也希望我的内置编译命令在远程系统上执行构建。
如果它有所作为,源代码全部在C中,使用GCC。按照优先级顺序排列,我的桌面上有Emacs,Vi和Netbeans,而且我愿意安装另一个IDE,最后一个办法。
一个选项是使用 TRAMP 远程编辑软件包(内置于Emacs 22和更新版本,您可以将其安装到旧版本中)。每次保存文件时,Emacs会通过ssh(默认情况下,每个细节都是完全可配置的)将其内容发送到Linux机器。命令如 Mx编译
和 Mx grep
是TRAMP感知并在远程主机上执行。
I'm doing my development work on my Windows machine, but my compiling on a remote Linux machine. What I currently do is start an X server on Windows, ssh into the Linux machine, then do the development remotely.
What I'd like to do is edit my source on the Windows machine, and have it automatically copy files over to the Linux system when I save. I'd also like for my built-in compilation commands to perform a build on the remote system.
If it makes a difference, the source is all in C, using GCC. In descending order of preference, I have Emacs, Vi, and Netbeans on my desktop, and am willing to install another IDE for a last resort.
One option is to use the TRAMP remote-editing package (built into Emacs 22 and newer, and you can install it into older versions). Every time you save your file, Emacs sends its contents over ssh (by default; of course every detail is totally configurable) to the Linux machine. Commands like M-x compile
and M-x grep
are TRAMP-aware and execute on the remote host.
这篇关于远程编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!