42

I had to immediate shut down, and I lost about 20 unsaved tabs, is there any way to recover these?

  • 3
    notepad++ 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 Sep 21 '15 at 8:42
61

Is there any way to recover unsaved files?

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.

enter image description here


When was the "Session snapshot and periodic backup" feature introduced?

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

  • 1
    My 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 Sep 20 '15 at 13:51
  • 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 Sep 20 '15 at 13:55
  • 1
    This 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 Nov 11 '17 at 17:07
28

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.

  • 1
    This 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 Sep 14 '17 at 12:48
  • This 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- Dec 20 '17 at 0:15
  • this worked for me – Uriahs Victor Apr 9 '18 at 19:23
12

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

  • 1
    In 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 Dec 21 '16 at 21:58
  • 1
    Worth 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 Jan 29 '18 at 13:39

protected by Community Mar 4 at 7:20

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.