The pain of Eclipse deletion

Source: Internet
Author: User
Eclipse and MyEclipse recover deleted files and code

It is strongly recommended that you do not delete hard disk files when deleting, choose to delete them manually, the following delete recovery is only suitable for the record recovery of Eclipse, but the recovery function of Eclipse is not very powerful, so it is good to be careful.

1. Recovery of class files

A few days ago in the development, accidentally wrote a number of 1000 lines of code to delete the class, instinctively down the CTRL + Z to recover, but not a bit of use, but there is no solution to the search under the method, to re-write again really a bit

Heart unwilling Ah, haha finally found a good way:

After you select the item, right-click Restore from Local history--> The following interface appears:

Check and press restore on the recovery, really very powerful very convenient; but I did not stop, I immediately created a project, the random write two files after deletion, and then closed the MyEclipse after re-open, still carry on the above

Recovery operation, found that really can recover, indeed very powerful;

2. Recovery of code that was mistakenly deleted

We generally in the case of MyEclipse does not close, will be easy to use CTRL + Z to recover, but after closing the myeclipse you may feel helpless, haha, this introduction is similar to the above has been the method of

Code recovery: Right-click-->local history-->replace with to discover all the modified content

Select the point in time at which you want to restore the code to replace or copy directly

The pain of Eclipse deletion

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.