If I've accidentally modified a configuration file using Notepad++, saved it, and then closed the file - is there any possibility that Notepad++ may have saved the pre-modified content in a temporary file somewhere?
I need to recover the configuration file - any ideas how I can do this?
7 Answers
Go to: Settings > Preferences > Backup.
Press start+R And Paste
%AppData%/Notepad++/backup
rename the the file you want to backup from this format "yourfile.php@2015-01-08_190914" to this format "yourfile.php" and take it to your work directory.
1If Notepad++ crashes, and no data remains then
Press Start+R
Then Paste: %AppData%/Notepad++/backup
You will see all backed up files there.
1From a discussion at Sourceforge:
Try finding the recovery folder of Notepad++. On my XP machine, 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.
Might be possible with just Windows 7.
Right-click to the file you want to restore and select "Restore previous versions". Not sure about configuration files, but worked perfectly with html and css files (promised myself this will never happen again :)
PS. my original files were 3 days old and were saved as part of system restore point.
No. There is no way to restore state of the closed file.
But pcunite pointed out a good way to go in Your future daily work with notepad++. Backup is as simple as selection of one option in the settings.
Go to the folder of the file, see if there is a subfolder called nppBackup. Recently I've found sometimes the backup wasn't created in %AppData%/Notepad++/backup but it always seems to get created here, with the following file name format [original file name][date stamp]_[time stamp].bak