Under windows, what PHP editor can be linked to linux and directly edit the code of the project in linux?
天蓬老师
天蓬老师 2017-05-31 10:33:40
0
11
1339

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?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(11)
刘奇

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

参数解释:
-o transform_symlinks 表示转换绝对链接符号为相对链接符号.
-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.

仅有的幸福

phpstorm ah

滿天的星座

Just install a PHP online manager, Baidu "Mango Manager"

習慣沉默

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.

PHPzhong

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.

Peter_Zhu

vagrant, the specific installation can be found on my blog: http://www.cnblogs.com/lamp01...

我想大声告诉你

You can use docker

刘奇

What you need is Samba

Solve your needs

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template