Java development on files located on a remote machine

I am developing in Java using VIM or Notepad ++ editors, and my java code is on a remote linux machine. For minor changes, I just putty / vnc for the remote Linux machine; for big changes I use Notepad ++ as FTP is built in it. In Notepad ++, I view deleted files, upload the files I want to edit, and just saving the file saves the file back from the remote Linux machine.

What I am missing from notepad ++ is intellisense, autocode complete, and a few functions that will help me code faster.

I used Eclipse before I could localize the code and integrate with version control. However, in this case, the files are located remotely, and I cannot integrate with version control.

Is there anyone else in a similar situation that has a working solution that they can explain?

+4
source share
3 answers

This is the goal of the Eclipse Target Management (TM) and Remote Systems Explorer (RSE) projects: http://www.eclipse.org/tm/ . Also see Their Frequently Asked Questions: http://wiki.eclipse.org/TM_and_RSE_FAQ

+4
source

You can try something like SSHFS , then you can remotely mount remote files and treat them as if they were local. If you have a huge project, it may not be effective enough, or if you have a confusing connection. But this is a good way to bring remote resources to your computer.

Addenda:

I don't know much about Windows, but found this link.

Regarding rsync, rsync is a guide after the fact process. Using SSHFS, you can save or create alt - tab files in a terminal window, and the files are already on the server. We used it to develop PHP. Edit files locally, save the files, a tab in the browser on the server and click "Update" - shazam.

+2
source

Well, from the mention of spackler, I assume that you are using Windows.

Number one choice: get the operating system.

Sorry, I just had to say that.

Well, you really have two options.

There is only one choice: use some kind of distributed configuration management system. Among the features are dars, bazaar, git and mercury. Subversion can remotely access files, so it can do the same in limited ways. In all these cases, you can basically copy your files to the local computer and return them using simple commands that transfer files more or less optimally.

Second choice: use a remote file system. SSHFS and FTP file systems are good. I would recommend ExpanDrive , which I used very happily for several years on the Mac. Now it is available for windows.

Perhaps the simplest version of this is DropBox , which replicates files on all of your machines, including Linux. It is not very real-time, but it does not sound the way you need it. I use DropBox between home, laptop and work (on a linux machine), and by the time I get to the office, all my changes at home are replicated.

0
source

Source: https://habr.com/ru/post/1385823/


All Articles