IntelliJ IDEA可以显示本地更改的更改标记吗? [英] Can IntelliJ IDEA show change markers for local changes?

查看:689
本文介绍了IntelliJ IDEA可以显示本地更改的更改标记吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中喜欢的功能之一是它能在左边距中用彩色编码的条进行注释,这些行在我正在编辑的程序中已更改.

One of the features I love in Visual Studio is that it notes, with color-coded bars in the left margin, which lines I've changed in the program I'm editing.

是否可以在IntelliJ IDEA中获得类似的东西?

Is it possible to get something similar in IntelliJ IDEA?

我知道它具有受版本控制的文件的更改标记"功能,但不适用于我.我还看到了这个问题,其中似乎暗示应该有可能,尽管那个人有相反的问题.

I'm aware that it has a "change markers" feature for files that are under version control, but that's not applicable for me. I've also seen this question which seems to imply that it should be possible, although that guy had the opposite problem.

推荐答案

您要询问的装订线标记仅在将VCS与项目一起使用时出现.

The gutter marks that you are asking about only appear when you are using a VCS with the project.

IDEA会跟踪本地历史记录,但不会显示装订线的变化(很可能是因为该本地历史记录是临时的,并且在缓存无效或完成升级时会被覆盖).

IDEA will track local history, but does not show the changes in the gutter (most likely because this local history is temporary and is overwritten when the cache is invalidated or when an upgrade is done).

要查看完整的历史记录,请在项目"视图中右键单击该文件,然后在本地历史记录"下选择显示历史记录":

To view the completely history, right click on the file in the Project view, and under Local History select Show History:

以上图片摘自

The above image is taken from the online documentation, where it describes the Local History feature:

本节介绍了如何使用本地历史记录 个人实时版本控制系统.现本地历史"为 独立于外部版本控制系统,并与 项目目录,即使它们不在任何VCS下 控制.

This section describes how to use Local History, which is your personal real-time version control system. Local History is independent of external version control systems and works with the directories of your project even when they are not under any VCS control.

如果您希望在排水沟中显示本地历史记录更改,则可以在

If you want local history changes to be shown in the gutter, you can raise this as a feature request at the bug tracker.

这篇关于IntelliJ IDEA可以显示本地更改的更改标记吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆