How to Configure FTP in Notepad++

Notepad++ is a free, open-source text and source code editor for Windows. It’s designed to be a lightweight and efficient alternative to the basic Notepad and offers additional features like syntax highlighting, code folding, and support for numerous programming languages. It also provides a quicker way to connect directly to a remote server using FTP (File Transfer Protocol). This means you can open, edit, and save files located on a web server directly from Notepad++, without switching to a separate FTP client like FileZilla or WinSCP. This article explores how to configure FTP in Notepad++, from installing the NppFTP plugin to setting up a secure connection to your remote server.

Why Use Notepad++ for FTP?

Notepad++ is a favorite among developers for its lightweight design, syntax highlighting, and plugin support. The NppFTP plugin adds FTP, FTPS, FTPES, and SFTP capabilities, allow you to:

  • Access and edit server files without a separate FTP client like FileZilla.
  • Save changes directly to the server with a single click.
  • Work efficiently on Windows (Note: Notepad++ is Windows-only).

This eliminates the need to download, edit, and re-upload files, saves your time, and reduces errors.

Benefits of Notepad++ with FTP

Before we start, ensure you have:

  • Notepad++ installed: Download the latest version from notepad-plus-plus.org.
  • FTP credentials: Hostname, username, password, and port (usually 21 for FTP, 22 for SFTP). Check your hosting provider’s control panel (e.g., hPanel, cPanel) for details.
  • Administrator access: Some plugin installations require admin rights.

Install the NppFTP Plugin in Notepad++

To enable FTP functionality in Notepad++, first, you need to install the NppFTP plugin.

  • Open Notepad++: Launch the program (run as administrator if needed).
  • Go to Plugins > Plugins Admin in the top menu.

Notepad++ plugin admin

  • In the Plugins Admin window, go to the Available tab.
  • Search for “NppFTP” and check the box next to it.
  • Click Install. Restart Notepad++ when prompted to complete the installation.

Install the NppFTP Plugin in Notepad++

After restarting, go to Plugins > NppFTP > Show NppFTP Window. A panel should appear on the right side of Notepad++.

Show NppFTP window

If NppFTP doesn’t appear, ensure you’re using the latest Notepad++ version. Older versions may require manual plugin installation from [SourceForge] (https://sourceforge.net/projects Ascertain that the plugin is up-to-date.)

Configure the NppFTP Profile

Next, we need to set up your FTP connection. For this, you need the FTP server’s hostname or IP address, the port number, and the username and password for your server. This information is typically provided by your hosting provider or the administrator of the server you’re connecting to. You can find it in your hosting control panel or by contacting your hosting provider.

  • In the NppFTP panel, click the gear icon (Settings) and select Profile Settings.

Open Profile Settings

  • Click Add New in the Profiles section and enter a name for your profile (e.g., “MyServer”) and click OK.

Create a New Profile

Now, in the Connection tab, you need to enter FTP Credentials

  • Hostname: Your server’s FTP address (e.g., ftp.yourdomain.com).
  • Port: 21 for FTP, 22 for SFTP.
  • Username: Your FTP username.
  • Password: Your FTP password.
  • Connection Type: Choose FTP, FTPS, FTPES, or SFTP based on your server’s requirements.

Initial Remote Directory: Specify a folder like /public_html/ if you want to land directly there. (Optional)

configure FTP server

  • Click Close to save the profile.

If you encounter connection issues, double-check your credentials. Some servers require SFTP or FTPS for secure connections. Contact your hosting provider if unsure.

Connect to the FTP Server

Once your profile is set up, it’s time to establish a connection:

  • In the NppFTP panel, click the blue connect icon (a plug) and select your profile.
  • The first time you connect, you may see a message about an unknown host key. Click Yes to proceed.

connect FTP server

  • Once connected, the NppFTP panel displays your server’s file directory. Double-click folders to navigate.
  • You can now open and edit remote files directly in Notepad++. Changes are saved live to your server.

Pro Tip: For faster connections, use SFTP if your server supports it—it’s more secure and often quicker.

Edit Server Files with Notepad++ FTP

Now you can edit server files with Notepad++ FTP:

  • Double-click a file in the NppFTP panel to download and open it in Notepad++.
  • Edit the file as needed. Notepad++’s syntax highlighting makes coding a breeze.
  • Press Ctrl+S to save. NppFTP automatically uploads the updated file to the server.

Note: Always back up files before editing to avoid accidental data loss. Use your hosting provider’s file manager to create backups.

Edit Server Files with Notepad++ FTP

This eliminates the need to download, edit, and re-upload files through a separate FTP client.

NppFTP also lets you manage server files:

  • Upload Files: Right-click in the NppFTP panel and select Upload File to send local files to the server.
  • Create/Delete Directories: Right-click and choose Create Directory or Delete to organize your server.
  • Monitor Transfers: The NppFTP queue window shows active and queued file transfers.

manage server files using NppFTP

Even configuring FTP in Notepad++ is a straightforward setup, sometimes you may encounter problems. Here is how to fix common issues while configure and using FTP in Notepad++.

  • Connection Refused (ECONNREFUSED): Ensure port 21 (FTP) or 22 (SFTP) is open. Check with your hosting provider. Try switching to SFTP if FTP fails.
  • Plugin Not Showing: Run Notepad++ as administrator and reinstall NppFTP.
  • Slow Transfers: Clear the cache (Settings > General > Clear Entire Cache on Disconnect) to free up space.
  • File Not Saving: Verify write permissions on the server. Contact your host if restricted.

Always use SFTP for secure file transfers, especially when working on sensitive or production environments. Use Notepad++ syntax highlighting to reduce code errors during live editing.

 

Kelvin smith
I am Kelvin smith founder of this blog. My qualification. completed Bachelor of Arts (BA) and Microsoft Certified Professional (MCP). With a strong background in computer applications love write articles on Microsoft Windows (11, 10, etc.) Cybersecurity, WordPress and more.