https://blog.csdn.net/happy_wu/article/details/73302994
ftp/sftp remote editing function of Notepad++
introduce:
Notepad++It is an excellent open source editor. The biggest feature is that it is rich in plug-ins. Here I will share some of my commonly used practical plug-ins, some of which are pre-installed by Npp . These plugins are mainly development related, so if you need other plugins, you can browse http://sourceforge.net/projects/npp-plugins/files/ .
Here I mainly write the FTP plugin.
Under normal circumstances, we will modify the text file locally and then submit it to the server for online editing, etc.
But sometimes we need to modify the files on the server in real time. Try NotePad ++ ~
1. Download notepad++
http://notepad-plus.en.softonic.com/
1. Automatic installation:
Plugin - > Plugin Manager - > ShowPlugin Manager - > Check NppFTP Plugin - > Install
Open the official website of the notepad++ plugin project: http://sourceforge.net/projects/npp-plugins/
Click the desired plugin in the list (or search for the plugin you want in the top search box), take Autosave as an example.
Copy and decompress NppFTP_0.26.3\bin\ NppFTP.dll
Unzip the downloaded plug-in file to the Plugins directory, and the installation is complete (pay attention to restart).
Second, configure the connection
1. Menu bar : Plugins --NppFTP-- check " Show NppFTP Window "
2. Click the small gear, set the FTP link configuration, as shown in the red area, fill in the FTP information.
3. Double-click the file you want to download to download it.
4. Press Ctrl + s to save and update directly to the server
3. Introduction to sftp
sftp是安全文件传送协议。可以为传输文件提供一种安全的加密方法。SFTP同样是使用加密传输认证信息和传输的数据,所以,使用SFTP是非常安全的。但是,由于这种传输方式使用了加密/解密技术,所以传输效率比普通的FTP要低得多,如果您对网络安全性要求更高时,可以使用SFTP代替FTP。所以我这里完全可以考虑用root用户,这样不用考虑复杂的权限问题。
6、 错误解决
保存文件时更新到服务器失败
Upload ofC:\Users\liyanjun\AppData\Roaming\Notepad++\plugins\config\NppFTP\Cache\[email protected]\home\rqbftp\ftptest.conffailed
这个错误原因是 你对文件没有相应的权限,你可以给登录ftp用户一个root组的权限
四、 插件介绍
Explorer
Explorer是文件浏览插件,可以快速的定位当前正在编辑的文件的位置,支持在搜索目录下文件的内容(Findin files)。收藏夹功能可以保存经常使用的目录或文件。
Compare
Compare, 文件对比插件,可以进行简单快速的对比,不过进行复杂点的对比,我一般用WinMerge。
DBGp
DBGp client plug-in is generally used together with xDebug to remotely debug PHP programs.
TagsView
TagsView , the document's Class, property , method list. Better to use than another plugin called FunctionList .
NppFtp
NppFTP, FTP client, needless to say.
RegEx Helper
RegEx Helper , which matches regular expressions in documents, can be used to test regular expressions.
JSON Viewer
JSON Viewer, which displays the structure of the selected JSON in the document.