13

This should be pretty simple for any experienced users of NPP.

Desired behavior:

  1. Double-click Notepad++ session file (I use .npp)

  2. Session opens in Notepad++

I understand the session file can be opened after opening Notepadd++ from the Open File dialog, but that is not the desired behavior. I've achieved the desired behavior on WinXP and Win8 with no problem, but can't get Win7 (x64) to cooperate. First, I tried simply changing session extension to npp (Settings > Preferences > Misc). But since no program was associated with .npp, I got the "Open With..." menu. Next, I tried associating .npp files with Notepad++, but then the files open in Notepad++ as raw text files, not session files. What am I missing? I've done this before many times, just never on Win7. Thank you very much, I tried Google for an hour but found no help.

1
  • I found this question when I was looking for the -openSession command line parameter. If you go digging around in the registry, you might be able to slip that in somewhere. Commented Jul 6, 2015 at 15:42

2 Answers 2

25

Settings > Preferences > MISC > Session file ext

"If an extension is entered in Session file ext, Notepad++ will try to open these files as session files instead of regular files. This allows you to simply provide a session file via the command line or any other method of opening a file to load a session into Notepad++."

http://npp-community.tuxfamily.org/documentation/notepad-user-manual/settings/preferences

1
0

I seem to have figured it out. The problem is that something has changed in new version of NPP where it cannot parse NPP sessions saved by previous versions of NPP. If so, the only solution know of is what I did - recreated my old sessions and re-saved over the old session files...

1
  • Do you mean that M.R.'s answer is not the solution you had?
    – Pacerier
    Commented Jun 18, 2015 at 22:22

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