58

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?

56

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

|improve this answer|||||
  • 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
  • 2
    Unfortunately not all plugins store its config in %APPDATA\Notepad++ directory (e.g. QuickText). – Adam Ryczkowski Jan 27 '13 at 11:27
15

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

|improve this answer|||||
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.

|improve this answer|||||
  • 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++\
|improve this answer|||||
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++
|improve this answer|||||
1

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.

|improve this answer|||||

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.