Reopen Notepad++ after update, restart or shutdown Windows 10 from where I was



  • hello. I wanna keep open notepad++ after after update, restart or shutdown Windows 10. With all tabs, all session as it was before. How can I do this?



  • something like, Pick Up where I left off



  • @Vasile-Caraus

    I assume I’m missing something obvious but isn’t this done by activating
    Settings->Preferences->Backup and checking Remember current session for next launch?



  • That used to be the case but since the last Notepad++ update that isn’t happening. It will remember the last session when manually shutdown but not if Windows was shut down.

    I think I’ve also had a couple of situations where it just closed all its files. At work there’s a particular file I like to keep open all the time and since the last update I’ve found that it’s been closed without any other evidence of Windows having restarted.

    So I think something has become broken in the ‘session resume’ logic.



  • @Andrue-Cope said in Reopen Notepad++ after update, restart or shutdown Windows 10 from where I was:

    since the last Notepad++ update

    By that do you mean the last auto-triggered Notepad++ update? or the last time you happened to choose ? > Update Notepad++? or the last Notepad++ version that was released on the official website? Or the most recent update that was released on some non-affiliated download site? Because those are possibly (probably?) separate versions. The auto-update is often 2+ weeks behind the release on the official website. Giving actual version number is the only meaningful phrasing when reporting a regression/bug/behavior-change. The best thing to do is go to ? > Debug Info > Copy debug info into clipboard and paste the results in your reply: this way there is no ambiguity.

    It will remember the last session when manually shutdown but not if Windows was shut down.

    What do you mean by that? Do you mean that if you close Notepad++, then shut down windows, the next time Notepad++ launches, it doesn’t remember? Or do you mean if Windows shuts down cleanly while Notepad++ is still running, then the next time Notepad++ launches it doesn’t remember your session? Or do you mean if Windows crashes while Notepad++ is still running, then the next time Notepad++ launches that it doesn’t remember your session?

    Also, what are your Settings > Preferences > Backup settings?



  • I have the same issue…

    I mean if Windows shuts down cleanly while Notepad++ is still running, then the next time Notepad++ launches it doesn’t remember my open-tabs …

    I am using Windows 10 ver. 1903 and NP++ ver. 7.8.1



  • Actually I found there is a similar issue to Microsoft Visual Studio Code…
    If I shut down Windows while MS-VSC is still running, the next time MS-VSC launches it just remember the previous open-tabs (which MS-VSC closed by myself), not the last open-tabs…

    So, there might be an authority-issue of Windows 10 to access some session directories when we shut down Windows 10 …



  • In theory, shutting down windows and having application saving their settings, does work BUT only if there is enough time left to do so.
    What happens on a windows shutdown is that windows sends a WM_QUERYENDSESSION message to all running programs.
    As we see here, npp handles this case.
    Now the application has 5 seconds to handle this request, if it can’t it will be terminate.
    So, there is no guarantee that a clean application shutdown can be proceeded on a windows shutdown therefore my recommendation would be to exit your application explicitly.


Log in to reply