简体   繁体   中英

File “rollback” in any Java IDE

Is it possible to set a "rollback point" in any Java IDE (Eclipse, NetBeans, IDEA), so that I can quickly get back to it if I don't like the change without going through the millions of Undo's?

I know that there's a best practice branch-commit quickly-merge, but that's not appropriate in current environment.

Eclipse

Eclipse keeps a local history of a file. Right-click in the file and choose Compare With -> History to view it.

It may be necessary to mark the 'Local Revisions' tool bar button in the History view to view them.

The local history can be configured via Window | Preferences, then General -> Workspace -> Local History

NetBeans

NetBeans has a local file history which acts similar to a versioning system. You can "rollback" your changes to a specific version of the file.

IntelliJ IDEA

IDEA has the similar feature , and even supports labels , which are put on the whole project tree.

NetBeans has a local file history which acts similar to a versioning system. You can "rollback" your changes to a specific version of the file.

在Eclipse中,我认为本地历史可以提供帮助

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM