However, one caveat of Notepad++ is that it’s only limited to Windows. So, if you’ve been a Notepad++ user for a long time and recently switched operating systems to Linux, you’ll probably feel the void of Notepad++ very dearly.

Fortunately, though, there are a couple of ways to install and get Notepad++ running on a Linux machine. In this guide, we’ll go over these methods in detail.

Installing Notepad++ on Linux Using Wine

One of the preferred methods to install Notepad++ and other Windows programs on Linux is to use Wine. This method works well on Debian and its derivatives. However, if you’re on some other Linux distro, using Snap (demonstrated below) is probably a better way to get Wine on your computer.

For the uninitiated, Wine (an acronym for Wine Is Not an Emulator) is a compatibility layer that allows you to run Windows programs on Unix-like operating systems.

Download and Set Up Wine

First, open the terminal app and add a WineHQ signing key using the command below:

If this command returns an error, you can split it into two. Here’s what that would look like:

Next, run the following command to add the official Wine repository to your system’s repository list:

Update your system’s package list by running:

Finally, install Wine on your computer with the help of the following command:

When prompted, type y/yes and hit Enter to continue.

Once Wine is installed, you need to set the architecture and prefix to indicate whether you have a 32-bit or 64-bit system. For better compatibility, we’ll set both architecture and prefix to 32-bit.

To do this, in a terminal window, run the following two commands:

Installing Notepad++ With Wine

Now that you’ve installed and set up Wine, it’s time to download and install Notepad++ in Wine.

To do this, download the installer package from the official website.

Download: Notepad++

After the download is complete, go to the Downloads directory (or to the directory where you downloaded the program) on your computer. Right-click on the Notepad++ setup file and choose Open With Other Application > Wine Windows Program Loader to load it into Wine.

Wine will now run the Notepad++ Installer. And, the first thing it’ll ask you to do is select your preferred language.

In the Installer Language prompt, choose a language and hit OK.

You’ll now be greeted to the initial setup screen. Hit Next to continue.

Accept the license terms by clicking the I Agree button on the License Agreement page.

Now, choose a destination folder to install Notepad++ and click Next.

On the components selection screen, choose between Minimalist or Custom packages and tap Next. Minimalist gets you just the basic components required to run Notepad++, whereas, with Custom, you can pick components you want to install (like plugins) individually.

If you wish to have a shortcut for Notepad++ on your desktop for convenient access, check off the box next to Create Shortcut on Desktop on the next screen.

Finally, click Install to install Notepad++ with the selected preferences.

Installing Notepad++ on Linux Using Snap

Installing Notepad++ or any other program via Snap is the easiest, and you can use this method on pretty much any Linux distro that doesn’t officially have the package you want to install in its package manager.

Much like the standalone Wine approach, installing Notepad++ via Snap also uses Wine: it relies on an embedded version of Wine but saves you the hassle of having to install Wine separately.

To install Notepad++ using Snap, first, make sure you have Snap installed on your Linux machine. For this, open the terminal and run:

If it outputs the Snap description, this indicates that Snap is present. In case it doesn’t, you’ll need to install Snap on your system before proceeding further.

After you’ve installed Snap, install Notepad++ with the following command:

If at some point in the future you wish to uninstall Notepad++ from your computer, you can do so with:

Launching Notepad++

If you installed Notepad++ using Wine, you must’ve had the option to create a shortcut for Notepad++ on your desktop. In case you selected it, you can now double-click on the shortcut to run Notepad++. If not, you can find Notepad++ in the Applications menu.

Alternatively, you can also run Notepad++ from the terminal with:

For example, if you installed Notepad++ under Program Files (x86), you’d run:

Similarly, if you installed Notepad++ through Snap, you can launch the program either by finding it in the Applications menu or running the notepad-plus-plus command in a terminal window.

If you choose the latter route and can’t run Notepad++, it might be because the PATH environment isn’t set for it. In this case, you can either set the PATH variable for Notepad++ on your system or run the program by prepending it with its installation path.

For this, first, run which notepad-plus-plus in a terminal window to find out the installation path for Notepad++. Next, copy this path and paste it in a new line followed by notepad-plus-plus.

For example, if Notepad++ is installed under /snap/bin/, you can run it from any directory using:

Getting Up to Speed With Notepad++

If you’ve already been a long-time Notepad++ user but had to resort to some other text editors having switched to Linux, this guide should’ve helped you install and get Notepad++ up and running on your Linux machine.

At long last, having been reunited with your favorite text editor, you can now use Notepad++ on Linux in pretty much the same way as you did on Windows. And since it runs on Wine, you should also be able to install the Notepad++ Plugin Manager to extend its capabilities further.