ftp/sftp remote editing function of Notepad++ plugin

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/

wKioL1aM5KPy5QHmAAA6Y7wOMjM912.png

1.        Automatic installation:

Plugin - > Plugin Manager - > ShowPlugin Manager - > Check NppFTP Plugin - > Install

wKioL1aM5LTQnh13AADmetf6nW8854.png

1. Manual installation 


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.

 

wKioL1aM5MGA_O6NAAEEnMkQcR4925.png


Copy and decompress NppFTP_0.26.3\bin\ NppFTP.dll

wKioL1aM5M6Qll5EAACnWycU7ks481.png



Unzip the downloaded plug-in file to the Plugins directory, and the installation is complete (pay attention to restart).wKiom1aM5LPThuzSAADorberXmw250.png

 

 

Second, configure the connection

 

1. Menu barPlugins  --NppFTP--  check " Show NppFTP Window "        

wKiom1aM5NuQil1yAADyMUvkX1A079.png



2. Click the small gear, set the  FTP  link configuration, as shown in the red area, fill in the FTP information.        

wKiom1aM5OqQlA9iAAEcXr8Ctj4473.png

wKiom1aM5QnzEEr5AAEdfPvETQg844.png

 

 

 

 

3. Double-click the file you want to download to download it.        

wKioL1aM5UPB5FdSAAFFMDFpIDY555.png


4.         Press Ctrl + s  to save and update directly to the server

wKioL1aM5Vej2-QrAAFFtth9MaA855.png


      3. Introduction to sftp

   sftp是安全文件传送协议。可以为传输文件提供一种安全的加密方法。SFTP同样是使用加密传输认证信息和传输的数据,所以,使用SFTP是非常安全的。但是,由于这种传输方式使用了加密/解密技术,所以传输效率比普通的FTP要低得多,如果您对网络安全性要求更高时,可以使用SFTP代替FTP。所以我这里完全可以考虑用root用户,这样不用考虑复杂的权限问题。

wKioL1aM5Wmxx9xZAAFOFMpIiAI830.png

6、        错误解决

保存文件时更新到服务器失败

Upload ofC:\Users\liyanjun\AppData\Roaming\Notepad++\plugins\config\NppFTP\Cache\[email protected]\home\rqbftp\ftptest.conffailed

这个错误原因是 你对文件没有相应的权限,你可以给登录ftp用户一个root组的权限

四、        插件介绍

Explorer

wKioL1aM5X_QRsybAABePyeTd9I277.png

Explorer是文件浏览插件,可以快速的定位当前正在编辑的文件的位置,支持在搜索目录下文件的内容(Findin files)。收藏夹功能可以保存经常使用的目录或文件。


Compare

wKiom1aM5WXQArxmAABpMOk3FEM842.png

Compare, 文件对比插件,可以进行简单快速的对比,不过进行复杂点的对比,我一般用WinMerge


DBGp

wKioL1aM5ZvTlMPKAABi91vCcTo578.png

DBGp client plug-in is generally used together with xDebug to remotely debug PHP programs.


TagsView

wKioL1aM5abiAbSBAABkb1epeD8155.png

TagsView , the document's Class, property method list. Better to use than another plugin called FunctionList .


NppFtp

wKioL1aM5bLRljzRAABgALhp1aU701.png

NppFTP, FTP client, needless to say.


RegEx Helper

wKiom1aM5ZigYX2aAABS1DbPEvE238.png

RegEx Helper , which matches regular expressions in documents, can be used to test regular expressions.


JSON Viewer

wKiom1aM5aXTbswaAAA9owvEoeU606.png

JSON Viewer, which displays the structure of the selected JSON in the document.


NppAutoIndent

wKioL1aM5iDBfsW7AAB6VUWSXD8391.png


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325805009&siteId=291194637