I feel that myeclipse is really powerful. I have to write this function, or I am sorry for the author of myeclipse.
1. Restore class files
During Development a few days ago, I accidentally wrote 1000 linesCodeThe class is deleted, and the instinct is to press Ctrl + Z to restore, but it is useless, but there is still a solution to the search, it is a bit difficult to re-write it again
Unwilling, haha finally found a good method:
Right-click the project and choose --> restore from local history --> The following interface is displayed:
After the check box is selected, press restore to restore it. It is really powerful and convenient. But I didn't stop it. I created a new project and deleted it after I wrote two files, close myeclipse and enable it again.
The recovery operation is indeed very powerful;
2. Restore accidentally deleted code
When myeclipse is not closed, we will simply use Ctrl + Z for recovery, but after myeclipse is closed, you may feel helpless. Haha, this introduction keeps up with the following methods.
Code recovery: Right-click --> Local History --> Replace with to find all modified content
Select the time point you want to recover to directly replace or copy the code