Eclipse and myeclipse restore deleted files and code

Source: Internet
Author: User

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

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.