65

I am trying to portabilize every program I use if possible, and Notepad++ is on the list. The only problem is that I've had a native installation until now so that I'm not totally sure which settings files need to be moved to the portable directory.

Surely there's a function tucked away somewhere in NPP exactly for this purpose, or some plugin out there? I mean the developers have literally thought of everything else, yet this is the one thing I cannot find specifically anywhere in the NPP wiki or otherwise, and I don't want to miss an important file.

Here is the closest I've gotten: Notepad++'s configuration files and Where are all the files?

Should I just copy every configuration file listed on the first link?

4
  • They have NotePad++ for PortableApps: portableapps.com/apps/development/notepadpp_portable – icc97 Jan 9 '14 at 14:00
  • 2
    Those links are both dead. – John Fouhy Mar 17 '15 at 23:38
  • 1
    @NoCartharsis, Why not simply download the portable Notepad++? – Pacerier Jun 18 '15 at 23:07
  • Latest version of npp from Git has portable versions that work fine. To use the largest set of plugins, simply choose the 32 bit version of npp and download one of the portable Zip versions. Npp Plugins (download each from Git) do NOT need to be installed through the tool and may be emplaced correctly with the base plugin name and dll in the plugins folder The behavior for usage of %appdata%\Notepad++ is governed by the presence of local file called "doLocalConf.xml" in the distro. Rename it if you want to reuse settings from %appdata% with your portable npp version. – John C Dec 3 '20 at 17:20
60

I found the configuration files under
%appdata%\Notepad++.

2
  • 4
    This is the same as %APPDATA%\Notepad++. As from the configuration files link in the question: "Those xml files (except doLocalConf.xml and asNotepad.xml which should be always in Notepad++ Install Folder, and langs.xml, which must be in %APPDATA%\Notepad++\ under Windows Vista or 7) are loaded from %AppData%\Notepad++ or Notepad++.exe's own folder, it depends respectively on the absence or presence of doLocalConf.xml in Notepad++.exe's folder." – icc97 Nov 1 '12 at 9:09
  • 3
    Unfortunately not all plugins store its config in %APPDATA\Notepad++ directory (e.g. QuickText). – Adam Ryczkowski Jan 27 '13 at 11:27
17

Many settings in NP++ can be automatically kept in sync (and migrated) between multiple instances by using Settings > Preferences > Cloud

Preferences > Cloud

The first time you set a cloud location (which can just be any folder path), it'll backup your current settings into that folder and then draw from there going forward. When setting the cloud location on a new machine, it'll read in those files there.

The cloud settings consists of the following items:

Cloud Settings
Note: You might need to remove the existing files with the same name under %appdata%\Notepad++. in order for the cloud storage files to take priority

9

You have already found the full list of Notepad++'s configuration files. If I were you, first I would copy the whole Notepad++ folder under the Program Files, and save it for some time. Then I'd start to use all the files listed on the NPP page, and after making sure everything's OK, I'd delete the backup.

2
  • It is not among best practices to backup program together with its config - think viruses. – Adam Ryczkowski Jan 27 '13 at 11:23
  • 1
    But the alternative (cherry-picking the needed config files) has also flaw: if one install yet another plugin, he would need to update the backup configuration to include a bunch of new config files that apply to that plugin. – Adam Ryczkowski Jan 27 '13 at 11:26
5

For those who are migrating from Windows XP (yes, I know this is 2012) you can find these files in:

C:\Documents and Settings\[User Name]\Application Data\Notepad++\
0
2

I just did this. Had to copy both folders below to get everything

C:\Program Files (x86)\Notepad++
C:\Users\"User_name"\AppData\Roaming\Notepad++
2

About specific points:

  • To save/restore the changed made through Style Configurator:

    If you modify the default theme, then the changes are saved in %APPDATA%\Notepad++\stylers.xml, if you changed another theme (like choco), then the changes ares saved in %APPDATA%\Notepad++\themes\choco.xml You will also find the stylers.xml and the choco.xml in the installation folder (e.g. C:\Program Files (x86)) but these ones are used to restore default.

  • To save/restore your plugins:

    Apparently you can only backup the plugins you have installed manually (by dropping them into the plugin folder). You need to reinstall the plugins using the plugin manager.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.