Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open Notepad++ session files as sessions instead of raw text files?

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.

like image 467
user353885 Avatar asked Jun 24 '12 22:06

user353885


People also ask

How do I open a Notepad++ session?

Double-click Notepad++ session file (I use . npp) Session opens in Notepad++

How do I open a session file?

If you cannot open your SESSION file correctly, try to right-click or long-press the file. Then click "Open with" and choose an application. You can also display a SESSION file directly in the browser: Just drag the file onto this browser window and drop it.

How do you save a notepad session?

Open Notepad++ Navigate to: Settings -> Preferences -> Backup. Ensure that "Remember current session for next launch" and "Enable session snapshot and periodic backup" are selected.


1 Answers

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

like image 120
M R Avatar answered Sep 18 '22 15:09

M R