最佳答案
Intellij IDEA 没有与 Eclipse 中的 Java Structure Compare Pane 直接对应的功能,但它确实有一些类似的内容来概述更改: Local History :
IntelliJ IDEA uses Local History to constantly track all changes made to projects. Unlike version control systems that show differences between specific commits, Local History automatically maintains revisions for all meaningful events. This produces a detailed timeline of changes in project structure and source code, with the ability to roll back to any point if necessary.
To view Local History:
- On the VCS menu, point to Local History, and then click Show History...
To revert to a specific revision:
- Select it from the list and click Revert on the toolbar...
它实际上非常强大,因为它允许您独立于任何源代码控制系统来恢复更改。这是我的本地历史记录的屏幕截图,可以让您更好地了解:
所做的更改汇总在屏幕左侧的列中。它可能不完全是您正在寻找的内容,但仍然值得一看。请注意limitations :
Local History is not a replacement for proper source control.
It is cleared when you install a new version of IntelliJ IDEA or invalidate caches. It has a retention period and maximum size, so revisions are not guaranteed to persist forever.
Local History is not available for contents of binary files.
关于java - IntelliJ 是否有像 Eclipse 一样的 "Diff Summary View"(结构比较)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48239391/