12

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.

4

2 回答 2

24

设置 > 首选项 > MISC > 会话文件扩展

“如果在会话文件 ext 中输入了扩展名,Notepad++ 将尝试将这些文件作为会话文件而不是常规文件打开。这允许您通过命令行或任何其他打开文件的方法简单地提供会话文件以加载会话进入记事本++。”

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

于 2012-09-27T20:56:11.523 回答
0

我似乎已经想通了。问题是新版本的 NPP 发生了一些变化,它无法解析以前版本的 NPP 保存的 NPP 会话。如果是这样,唯一知道的解决方案就是我所做的 - 重新创建我的旧会话并重新保存旧会话文件......

于 2012-06-25T06:38:16.187 回答