Use Xshell to connect to the Linux system, and vim to edit project code files. The efficiency is too low. Is there any editor that can directly access the Linux project code under Windows, edit and submit the code.
There is another question. Some companies require developing projects under Linux. Do they need to install Linux in a virtual machine and then develop it on the virtual machine? Or do they use a computer with a Linux system?
歡迎選擇我的課程,讓我們一起見證您的進步~~
FTP/SFTP clients such as FileZilla can generally configure custom editors.
I use FileZilla on the Ubuntu desktop, and the custom local editor configured is Geany.
The principle is that FileZilla connects to the Linux server through FTP or SFTP Finally, when you right-click to view/edit, FileZilla will download the file on the Linux server to /tmp/fz3temp-2
on the Ubuntu desktop, and call the local editor /usr/bin/geany
to open it. After modification, FileZilla will When prompted to upload, press Ctrl+E
to see which files are being edited. FileZilla will rename the file with the same name and remember the corresponding relationship.
If you need real-time synchronization, you can use sshfs on the Linux desktop. apt-cache show sshfs
Visible:
sshfs is FUSE (user space file system) based on the SSH file transfer protocol.
Because most SSH servers already support it This protocol is installed, so it is very easy to set up.
No work is required on the server side. Mounting the sshfs file system on the client is as simple as using SSH to log in to the server.
sudo apt-get install sshfs && mkdir ~/sshfs
把遠程根目錄掛載到~/sshfs下,掛載后在文件管理器里看到服務器目錄:
sshfs -o transform_symlinks -o follow_symlinks user@ip:/ ~/sshfs
參數(shù)解釋:
-o transform_symlinks 表示轉(zhuǎn)換絕對鏈接符號為相對鏈接符號.
-o follow_symlinks 沿用服務器上的鏈接符號.
It is recommended to use the software winscp.exe. Double-click to open the file to edit the file (using the editor on windows). After the modification is completed, ctrl+s can save the modified file on the remote host
When creating a new connection, select SFTP as the protocol
Just use a virtual machine. It is very simple to use vagrant under Baidu. There is a shared directory. Any changes under windows can be synchronized to linux in real time.
First of all, if you know how to use VIM, then VIM is enough to kill any editor (not IDE)
If you want to edit in real time, you can try to open the ftp service on the server side, then add it on the computer, and directly use the editor or IDE on the computer to edit the code. In theory, it will be automatically synchronized when saving.
If you find it difficult to use the ftp of the resource manager that comes with the system, you can try GoodSync and set it to automatic synchronization.
If you are using sublimeText, you can install the plug-in "FTPSync", and the file will be synchronized through ftp after saving, which is very convenient.
vagrant, the specific installation can be found on my blog: http://www.cnblogs.com/lamp01...