简体   繁体   English

在任何Java IDE中文件“回滚”

[英]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? 是否有可能在任何Java IDE(Eclipse,NetBeans,IDEA)中设置“回滚点”,这样如果我不喜欢这种改变而不经历数百万次撤销,我可以快速回到它?

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. Eclipse保留文件的本地历史记录 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 | 可以通过Window |配置本地历史记录 Preferences, then General -> Workspace -> Local History 首选项,然后是常规 - >工作区 - >本地历史记录

NetBeans NetBeans的

NetBeans has a local file history which acts similar to a versioning system. NetBeans具有本地文件历史记录,其行为类似于版本控制系统。 You can "rollback" your changes to a specific version of the file. 您可以将更改“回滚”到特定版本的文件。

IntelliJ IDEA IntelliJ IDEA

IDEA has the similar feature , and even supports labels , which are put on the whole project tree. IDEA具有类似的功能 ,甚至支持标签 ,这些标签放在整个项目树中。

NetBeans has a local file history which acts similar to a versioning system. NetBeans具有本地文件历史记录,其行为类似于版本控制系统。 You can "rollback" your changes to a specific version of the file. 您可以将更改“回滚”到特定版本的文件。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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