Notepad ++ crash !! Recover your lost file


What if your notepad++ crash while you are uploading  your file with ftp, and after restart notepad++ you see the file is empty!!!!!!!! I am sure it will make you crazy.This thing happens with me many time. Luckily we have solution if this thing happens to you gain. You can recover your file and its content.

Step 1. When Notepad++ crash

You are uploading file crashes.php, suddenly following screen appears on your window
source code editor has stopped working. i.e notepad ++ crash !!!
notepad++ crashes then recover file

Then do not close the notepad++.

Step 2. Locate the file in Notepad++ Cache

Here is simple shortcut to locate the local copy of the file.
Press WinKey+R . Now in run textbox enter the path below.

%AppData%/Notepad++/plugins/config/NppFTP/Cache

source code editor has stopped working

Notepad++ stores the cache data in roaming directory of system.

Step 3.Create backup of the cache file

Now in Cache directory all your edited ftp files present as in live server .
Locate and copy the file crashes.php for backup copy the file on desktop . Rename it to backup_crashes.php .
After creating backup ,you can restart your Notepad++ (GNU) .

 

Step 4. Recover the file.

Restart Notepad++
connect with your remote server
open the remote file crashes.php again .
if it is blank then copy the content from local backup file(backup_crashes.php) stored on desktop.

So  next time if notepad crashes while uploading then keep these steps in mind.

,