如何阻止notepad++从过去的会话加载所有文件?
每次我打开一个文件,我都有10个其他打开的标签,上面都是我过去的文件。我不想那样。当我按下关闭按钮时,我希望程序做我想做的事情并关闭它。如果我想保存一个会话,我会使用内置的会话保存功能。当我完成时,我不想点击灰色x 20次,这样下次我就不会有一堆文件打开并占用内存了。
我尝试了-nosession参数,这是有效的。但只有我用快捷键才能用。如果我使用右键编辑方法,它将不起作用。我如何设置notepad++来做到这一点?
如何阻止notepad++从过去的会话加载所有文件?
每次我打开一个文件,我都有10个其他打开的标签,上面都是我过去的文件。我不想那样。当我按下关闭按钮时,我希望程序做我想做的事情并关闭它。如果我想保存一个会话,我会使用内置的会话保存功能。当我完成时,我不想点击灰色x 20次,这样下次我就不会有一堆文件打开并占用内存了。
我尝试了-nosession参数,这是有效的。但只有我用快捷键才能用。如果我使用右键编辑方法,它将不起作用。我如何设置notepad++来做到这一点?
当前回答
Ok, I had a problem with Notepad++ not remembering that I had chosen not the "Remember Current Session". I tried hacking the config file, but that didn't work. Then I found out that there is a secret config file in your C:\Users\myuseraccount\AppData\Roaming\Notepad++ directory (Windows 7 x64). Mine was empty, meaning who know where the config was really coming from, but I copied over the file with the one in C:\Program Files (x86)\Notepad++ and now everything works just like you would expect it to.
其他回答
使用菜单项设置>首选项。
在结果对话框的MISC选项卡上,取消选中“为下次启动记住当前会话”。
我读答案。然后我注意到复选框已经被取消勾选,但它仍然总是重新加载文件。这是6.3.2版本的设置->首选项->MISC->“为下次启动记住当前会话”复选框。下面的方法解决了这个问题:
1. Check the check box.
2. Exit the program.
3. Start the program again.
4. Uncheck the checkbox.
对于版本6.6+,您需要取消“记住当前会话为下次启动”的设置->首选项->备份。
对于旧版本,您需要取消选中“为下次启动记住当前会话”。 on Settings ->首选项。
在notepad++ v6.6中,此设置被移动到首选项菜单的备份选项卡。
Ok, I had a problem with Notepad++ not remembering that I had chosen not the "Remember Current Session". I tried hacking the config file, but that didn't work. Then I found out that there is a secret config file in your C:\Users\myuseraccount\AppData\Roaming\Notepad++ directory (Windows 7 x64). Mine was empty, meaning who know where the config was really coming from, but I copied over the file with the one in C:\Program Files (x86)\Notepad++ and now everything works just like you would expect it to.