java - IntelliJ 是否有像 Eclipse 一样的 "Diff Summary View"(结构比较)?

标签 java eclipse intellij-idea

我也是 Eclipse 用户。 Eclipse 的 diff View 有一个额外的部分,总结了更改: enter image description here

我发现这对于获取所有更改的概述非常方便。

Intellij 有类似的东西吗?

最佳答案

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...

它实际上非常强大,因为它允许您独立于任何源代码控制系统来恢复更改。这是我的本地历史记录的屏幕截图,可以让您更好地了解:

LocalHistory

所做的更改汇总在屏幕左侧的列中。它可能不完全是您正在寻找的内容,但仍然值得一看。请注意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/

相关文章:

java - 将 DICOM 标签解析为 ArrayList<String>

Java解释: why String immutable make StringBuffer MORE efficient

scala - Intellij 2018.3.1 无法从 SBT 项目转储项目结构

git - 如何在 merge 操作中恢复某个特定文件的 'Resolve Conflict'?

java - 如何在Java中放置字符串文本而不将内容转换为xml文件?

java - 如何使用名称为 "dot"的 json simple 创建 json 对象?

c++ - 在 Eclipse 中查找 C++ 引用

java - 使用eclipse重建maven索引没有进展

android - 应用程序在加载浏览器时崩溃

java - Intellij 关闭涉及波浪线/波浪线/旋转线的代码折叠 (~)