45
10
I had to immediate shut down, and I lost about 20 unsaved tabs, is there any way to recover these?
45
10
I had to immediate shut down, and I lost about 20 unsaved tabs, is there any way to recover these?
65
Notepad++ will autosave if configured to do so.
Goto menu "Settings" > "Preferences" > "Backup" tab to see your configuration.
If "Enable session snapshot and periodic backup" has been checked then there will a "Backup path" configured.
The default "Backup path" is <Notepad++ install directory>\backup
.
You can look in this directory for any backup files.
In version 6.6.x:
As a reminder, the main feature of v6.6.x is Session snapshot & periodic backup - user won't be asked to save unsaved file as he quits Notepad++, and on startup Notepad++ restores the unsaved file and unsaved untitled document of last session. Such periodic backup of unsaved files will protects your data from the PC crashing or power outage.
You can always turn off this feature to get back the old behaviour: http://notepad-plus-plus.org/assets/images/sessionSnapshot.png
Source Notepad++ 6.6.2 released
1My Notepad++ version is 6.1.5. My backup options are None, Simple, Verbose. What version are you referencing? Also, what is the default setting? – user193661 – 2015-09-20T13:51:12.210
I'm running version 6.7.7. I've no idea what the default settings are. It looks like this feature was introduced in version 6.6.x. Answer updated. – DavidPostill – 2015-09-20T13:55:01.410
1This won't recover documents you closed and selected "do not save", by the way. You can get straight to the folder in the highlight by going Win+R, %APPDATA%\Notepad++\backup
. Just wanted to put that there since your screenshot is not copy-and-pastable. – Noumenon – 2017-11-11T17:07:11.513
Why is this option not enabled by default?!! – johey – 2019-12-14T13:01:14.953
32
I had also lost my one notepad++ file but I was able to recover that file from following location:
C:\Users\myUserName\AppData\Roaming\Notepad++\backup
I am using Windows 7.
2This answer is useful because this is the default directory for this purpose - so if anyone just wants to go directly for the prize, without even opening Notepad++, this is probably it. – pgr – 2017-09-14T12:48:05.687
1This saved a database creation script I was shitting squirrels about losing. It's worth mentioning that for me, unsaved files were backed up there but saved ones were not. – HB- – 2017-12-20T00:15:34.973
this worked for me – Uriahs Victor – 2018-04-09T19:23:32.943
13
If notepad wasn't able to create backup file and crashed. At that point it tried to recover files as dump which could be found at following place
%AppData%\Local\Temp\N++RECOV
1In my case for some reason it had issues with a lot of files that I have been using several days and they were not in the backup path but they were in this path. – Dzyann – 2016-12-21T21:58:32.827
1Worth noting that even if your files have their name mangled and end in .DUMP, notepad++ seems to be able to open them just fine. – Daniel Vestøl – 2018-01-29T13:39:32.440
3notepad++ bydefault saves the recent documents. so that if you do not change this settings it may be chance to get unsaved tabs otherwise not. – Akshay Pethani – 2015-09-21T08:42:33.930