Question

So, I got a new job and it requires a lot of VM management and editing php files on these VM's. Anyway we use putty to log into the VM's and just linux commands to edit the files. I figure there has to be an easier way out there. Not that I can't handle linux commands, but editing documents becomes much more cumbersome this way. I heard there is a way to do this through eclipse, but I don't know it. I do not ever have the php files on my computer, so wamp wouldn't work to my knowledge. thanks in advance for the help.

Was it helpful?

Solution 2

  1. You can use RSE (Remote Systems Explorer) plugin in Eclipse.
  2. You can simply create local git repository and then clone it on a remote system. This way you can work with your files locally (even when the network is down or you are on the beach) and push the changes as needed. Eclipse has a decent Git UI. You also get to keep complete change history!

OTHER TIPS

A good alternative would be to use Sublime's SFTP plugin to edit the files directly.. This is a great way to manage your code.

Download Sublime Text: http://sublimetext.com/

Install Package Control: https://sublime.wbond.net/

Install SFTP: http://wbond.net/sublime_packages/sftp/installation

Then you can browse the server remotely by setting up a Remote, and syncing that with a local folder.

If the server your working on has graphical programs installed, like gedit, you can install Xming on your local computer, then set up Putty for X11 forwarding. That way from the remote terminal you can just run:

gedit myfile.php 

and the file will appear in a graphical editor on your local machine. Another option would be to use WinSCP to download the files to your computer and edit them locally with your favorite editor then re-upload them to the server.

For editing files on your VM from your desktop, you might want to use an editor for your desktop that lets you save via sFTP to the VM, like Notepad++ or UltraEdit. Both of these are feature-rich GUI driven editors, with features for programmers like keyword highlighting, syntax checking, etc., that you can run on your desktop and open/save files directly from/to a remote host.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top