What's this grey triangle arrow means in IntelliJ?

ε祈祈猫儿з 提交于 2019-12-10 16:59:50

问题


What is this icon?

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.


回答1:


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

File content

  • Grey triangles: deleted content
  • Blue rectangles: changed content
  • Green rectangles: added new content

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.

Files

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

  • Green: new file
  • Blue: modified file
  • Grey: deleted file

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

And, in the time of committing changes you will see them like this (you see all files changed):


See official doc for more info.



来源:https://stackoverflow.com/questions/45154073/whats-this-grey-triangle-arrow-means-in-intellij

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!