programing

Notepad ++ 충돌시 코드 줄 손실

nasanasas 2020. 10. 13. 07:52
반응형

Notepad ++ 충돌시 코드 줄 손실


프로그램이 방금 충돌했을 때 평소와 같이 메모장 ++에서 오늘 아침 .js 파일을 작업 중이었습니다. 그래서 나는 그것을 끝내고 다시 열어서 .js 파일의 모든 코드 라인이 사라졌고 이제 남은 것은 0kb 크기의 파일뿐입니다. 도대체 어떻게 가능할까요? 그것은 내가 입력 한 모든 것을 지우고 아무것도없는 것처럼 파일을 저장했습니다.

내 코드를 되 찾는 방법을 아십니까? 아니면 이런 일이 누군가에게 일어 났습니까? : / 나는 거기에 많은 일이 있었기 때문에 약간 걱정이되고 모든 것을 다시 입력하고 싶지는 않습니다 ...


이 옵션이 활성화되면 (기본적으로) Notepad ++는 편집 한 파일의 백업 복사본을 유지합니다.

당신은 디렉토리에 백업을 찾을 수 있습니다 % APPDATA % \ 메모장 ++ \ 백업 형식 아래를 filename@datetime.


메모장 ++이 충돌했을 때 저장되지 않은 파일 4 개를 잃어 버렸고, 인터넷을 통해 검색하고 백업 폴더 외에 저장되지 않은 파일을 검색하는 다른 방법을 찾았습니다.

C : \ Users \ {사용자 이름} \ AppData \ Roaming \ Notepad ++ \ backup

나와 같은 문제에 직면 한 다른 사람들에게 도움이되기를 바랍니다. 다음 위치에서 덤프 파일을 찾을 수 있습니다.

C : \ Users \ {사용자 이름} \ AppData \ Local \ Temp \ N ++ RECOV

내부에 .dump 파일이 있으며, 여기에서 저장되지 않은 파일을 찾았습니다. Notepad ++로 덤프 파일을 열고 저장되지 않은 작업을 볼 수 있습니다.


최근에 이런 일이 몇 번 발생했으며 손실 된 코드를 복구 할 수있는 몇 가지 솔루션을 찾았습니다.

Windows 7 및 기타 최신 Windows 버전의 경우 :

  • 파일 탐색기에서 파일을 찾습니다. 크기는 0KB입니다. 마우스 오른쪽 버튼으로 클릭 한 다음 상황에 맞는 메뉴에서 속성을 선택합니다.
  • 이전 버전 탭을 선택합니다. 최신 복원 지점 중에 저장된 최신 버전을 찾을 수있는 좋은 기회가 있습니다. 조금 오래 되었다면 현재 0KB보다 여전히 낫습니다.
  • 복원 버튼을 클릭합니다.

나의 개인 최적 솔루션 :

이런 일이 몇 번 발생했고 Windows 이전 버전이 항상 최신 버전이 아니었기 때문에 0KB 충돌 전에 항상 최신 버전을 제공 할 수있는 다른 솔루션을 찾았습니다.

내 컴퓨터에 이미 솔루션이 설치되어 있음을 발견했습니다. 작업 파일을 항상 클라우드에 백업하는 SugarSync 계정이 있습니다. 서비스의 가장 큰 부분은 SugarSync가 항상 클라우드에서 마지막 5 개 버전을 유지하므로 현재 버전은 0KB이지만 마지막 버전 다음 버전을 다운로드하고 컴퓨터에서 파일을 업데이트 할 수 있다는 것입니다.

다른 백업 프로그램이있는 경우 해당 서비스가 복구 할 수있는 다른 버전도 유지하는지 확인할 수 있습니다.


몇 년 동안 백업없이 메모장 ++을 사용했습니다. 언젠가 나에게도 이런 일이 일어난다.

가능한 해결책으로 찾은 내용은 다음과 같습니다.

http://buffernow.com/notepad-plus-crash-recover-your-lost-file/ (Indrajit 답변과 유사)-별로 도움이되지 않습니다. 거기에서 내 파일을 찾지 못했습니다.

Hvck의 답변에 따라 일주일 전에 파일 복구 했습니다.

여기에도 같은 문제가 있습니다. 동일한 답변 : https://superuser.com/questions/390204/how-to-restore-a-previous-version-of-file-in-notepad

한 가지 교훈 : 백업을 사용하십시오!

  1. 플러그인 사용 : http://www.ilovefreesoftware.com/12/windows/two-plugins-auto-save-files-notepad-auto-save-autosave2.html

  2. 메모장 ++ 백업 사용 http://allinworld99.blogspot.ca/2015/01/notepad-backup-files.html

메모장 ++ 백업

** 업데이트 **

다시 나에게 일어난 일 !!! 내 파일을 복구하는 또 다른 방법은 내 브라우저에서 소스를보고 파일을 다른 위치에 다시 저장하는 것입니다. 운이 좋으면 브라우저에 파일을로드 할 수 있습니다. :) CSS 파일과 js 파일에서 저에게 효과적이었습니다.

Comparing the files: what N++ backed-up and the file from browser and files are matching. OMG!


GO to Taskbar click and run %APPDATA%, click to Notepad++ click to backup.

Your files saved by filename.extensionname@year-month-date_time


I know it's too late to answer this, but maybe my answer will help others.

I've encountered the same problem recently. Then it became regular. I did not find a solution to the problem itself, plus it may be caused by many different reasons, so probably no universal solution exists.

However, there is a way to save your files while notepad++ is not closed. Even if the backups folder is empty.

First of all, do not close notepad++. Open a taskmanager, find the notepad++ process and locate the Dump or Create dump file option. Click it. This will create a whole memory dump of the process. This dump will contain the documents you had opened. However you may need to find this data, plus it may be in a different encoding. I guess it is in UTF8 most of the time, but I am not completely sure.

The dump file can be examined with simple programs like notepad++ itself or with a hex editor.


  • Notepad doesn't auto-save its open file so unfortunately you have lost your work.
  • On next time you can use Notepad++ it retrieves file automatically
  • Refer this link may it help you Notepad++ recovery

I tried all the above solutions but nothing was working for me.

But luckily I have opened files one day earlier in eclipse as well. Eclipse and all other IDEs maintain a cache of all the files. You can get the copy of the file from that cache. To get copy from the eclipse.

  • Right Click on the file Name
  • Go to Replace With - Previous from the Local History

This answer applies to more recent versions of NotePad++: 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

참고URL : https://stackoverflow.com/questions/24158616/lost-code-lines-when-notepad-crashed

반응형