Notepad++ Can not Restore Previous Session

Solution 1:

For versions 6.6+ you need to CHECK -"Remember the current session for next launch" on Settings -> Preferences -> Backup.

pic1

For older versions you need to CHECK - "Remember the current session for next launch" on Settings -> Preferences.

pic2

If it's check, Try finding the recovery folder of Notepad++. On my XP machine (If it exist in your PC), it is at

C:\Documents and Settings\<user account name>\Local Settings\Temp\N++RECOV

The path may start differently in other versions of Windows.

credit

I would suggest to use Visual Studio Code