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.
For older versions you need to CHECK
- "Remember the current session for next launch" on Settings -> Preferences.
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