If I double-click on the Notepad++ icon, it opens the last document used. Is there any way to have it default to a blank new document when opened? Is there an argument I can pass in via the shortcut or something?
Asked
Active
Viewed 1.6k times
4 Answers
18
Uncheck the Remember current session for next launch" checkbox in
Settings->Preferences->MISC`. (Image from Notepad++ v6.4.5 (Aug. 9, 2013), Unicode.)
As has been noted below. the checkbox has been moved to the Backup tab in more recent versions:

Ken White
- 123,280
- 14
- 225
- 444
11
Run it with the launch parameter -nosession
This might be useful f.e if you have opened many documents in previous session and they got lost due to network issue or something else, so Notepad++ produces too much alerts and hangs so you cannot change the parameter in Settings.

q3kep
- 389
- 3
- 4
-
That's it. I need it very often for quick text manipulation or test expression and don't want to change my original settings for global one. – Abbas Feb 13 '17 at 11:18
4
Uncheck "Remember the current session for next launch" in Settings -> Preferences.