灰色三角形箭头在IntelliJ中是什么意思? [英] What's this grey triangle arrow means in IntelliJ?

查看:652
本文介绍了灰色三角形箭头在IntelliJ中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么图标?

由于有这个图标,一些代码被隐藏"了,当我单击它时,IDE会弹出以前应该存在的代码段,因为代码消失了,所以我也无法从其他文件中引用它.

Some codes are "hidden" because of this icon, when I click it, the IDE pops up the code snippet that's supposed to be there before, since codes disappeared, I can't reference it from other files either.

推荐答案

如果您使用的是版本控制系统(例如 Git )在您正在使用IDE的项目中,您将在文件上看到这些标记(请参见下面的示例图像).

If you are using a version control system (such as Git) in the project you are working on with the IDE, you will see these marks on the files (See sample images below).

  • 灰色三角形:已删除的内容
  • 蓝色矩形:更改的内容
  • 绿色矩形:添加了新内容

在尚未提交更改时可以看到这些内容.一旦完成所有更改,标记就消失了.

These are seen when the changes are not yet committed. Once all the changes are committed the marks are gone.

如果单击这些标记,将看到更改发生之前的内容.

If you click on those marks you will see the content that was there before the change took place.

相同的原则适用于文件(请参见下图)

The same principle is applied for files (see below images)

  • 绿色:新文件
  • 蓝色:已修改的文件
  • 灰色:已删除的文件

在工作时,您会看到这样的文件(已删除的文件将被省略):

While working you see the files like this (deleted ones are omitted):

并且,当您提交更改时,您将看到如下所示的内容(您看到所有文件都已更改):

And, by the time you're committing changes you will see them like this (you see all files changed):

有关更多信息,请参见官方文档.

这篇关于灰色三角形箭头在IntelliJ中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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