在 Sublime Text/Atom 中启用 FTP 文件树

Enabling a FTP file tree in Sublime Text/Atom

我最初一直在使用 Sublime Text 并尝试使用 Atom,但我未能获得像 Dreamweaver 中使用的那样的 FTP 文件树(下图)

我 FTP 在 Sublime 中工作,但它只带来了一个 FTP 悬停框,而不是一个固定的文件树。如何实施?

我也在努力让自动代码缩进在两个程序中都能正常工作。

首先,请记住 Sublime 和 Atom 都不是 IDE,它们是代码编辑器,因此不会像 Dreamweaver 那样具有 IDE 的所有功能已内置。

至少在 Sublime 中(据我所知在 Atom 中也是如此),左侧的文件树视图仅显示本地文件或映射网络驱动器上的文件。这意味着如果您想查看服务器上的文件,您需要将其映射到本地驱动器。每个操作系统都有多种解决方案。我使用 Transmit on OS X and the sshfs utilities on Linux. While the Windows utility WinSCP does not directly allow for mapping servers to network drives, you can use its Keep Remote Directory Up to Date task for similar functionality. If you need something more advanced for Windows, just Google sshfs windows 来获取灵感。

使用:

SFTP

在 Atom 上你可以试试 remote-ftp。安装 remote-ftp 后,您需要创建一个 FTP 配置文件来存储登录凭据。通过 remote-ftp 连接后,将在本地树视图的右侧打开一个远程树视图。