11

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?

Doug
  • 5,116
  • 10
  • 33
  • 42
  • 2
    possible duplicate of [notepad++ setting so it doesnt open old files from previous session](http://stackoverflow.com/questions/4675202/notepad-setting-so-it-doesnt-open-old-files-from-previous-session) – Toto Nov 08 '13 at 08:38

4 Answers4

18

Uncheck the Remember current session for next launch" checkbox inSettings->Preferences->MISC`. (Image from Notepad++ v6.4.5 (Aug. 9, 2013), Unicode.)

Notepad++ Settings Dialog image

As has been noted below. the checkbox has been moved to the Backup tab in more recent versions:

enter image description here

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
7

Setting is now on the backup page (Settings > Preferences > Backup page).

josh
  • 71
  • 1
  • 1
4

Uncheck "Remember the current session for next launch" in Settings -> Preferences.

https://stackoverflow.com/a/4675270/2441252

Community
  • 1
  • 1
Leigh
  • 12,038
  • 4
  • 28
  • 36