search

Home  >  Q&A  >  body text

Under windows, what PHP editor can be linked to linux and directly edit the code of the project in linux?

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?

天蓬老师天蓬老师2844 days ago1439

reply all(11)I'll reply

  • 怪我咯

    怪我咯2017-05-31 10:35:40

    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 沿用服务器上的链接符号.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-31 10:35:40

    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

    reply
    0
  • 高洛峰

    高洛峰2017-05-31 10:35:40

    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.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-31 10:35:40

    phpstorm ah

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-31 10:35:40

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

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-31 10:35:40

    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.

    reply
    0
  • PHPz

    PHPz2017-05-31 10:35:40

    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.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-31 10:35:40

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

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-31 10:35:40

    You can use docker

    reply
    0
  • 怪我咯

    怪我咯2017-05-31 10:35:40

    What you need is Samba

    Solve your needs

    reply
    0
  • Cancelreply