I sometimes need to remotely edit a file on a server and to do so, I would either mount the drive using netDrive (windows) and edit it with a local editor or use XMing to open the editor running on the remote machine and edit the files on the server as I was using it. Either solutions have worked for me in the past but none of them were as convenient as having a local copy of the project and upload the result on the server.
Recently, a friend told me that Eclipse could be used to access remote files and edit them. That sounded practical enough for me to give it a try.
The plugin you need to do so is called Remote System Edition or RSE. To install it, follow these steps:
- Go to Help -> Update -> Find and Install
- Create a new remote location and enter a name (for example RSE) and the following URL: http://download.eclipse.org/dsdp/tm/updates/
- Click Finish. When prompting, select a server near you.
- In the following window, check the box next to Remote System Edition
- Click Next and accept the terms and conditions.
- Click Finish and the installation begins
- Restart the IDE
Hopefully the above steps were successful, you can not edit remote files on a Linux (SSH) or FTP Server. To browse a remote server, you need to connect to it by doing:
- Window -> Perspective -> Other
- Select Remote System Edition
- In the browsing pane, right click and click create new connection.
- Enter the settings to connect to your server
- Your file system will appear
You might call me a geek but I think that’s cool. Eclipse is not my default editor (maybe become I don’t come from the Java World) but I use it a lot more now that I can edit remote files and quickly touch up a webpage without having to upload it via FTP and everything.