为什么一些 Android Studio 类用不同的颜色突出显示? [英] Why are some Android Studio classes highlighted with different colors?

查看:43
本文介绍了为什么一些 Android Studio 类用不同的颜色突出显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实注意到我的项目结构中有些类以蓝色突出显示.是什么原因?

I did notice some classes are highlighted in blue in my project structure. What is the reason?

推荐答案

扩展 tyczj 的答案,如果版本控制正在项目中使用,则文件名可能会在文件资源管理器、编辑器选项卡和活动更改选项卡中以不同颜色突出显示:

To expand on tyczj's answer, if version control is being used on the project then file names may be highlighted in different colours in the file explorer, editor tabs and active changes tab:

  • 白色 - 自上次提交以来没有对文件进行任何更改
  • 蓝色 - 文件存在于版本控制中并且自上次提交以来已被修改
  • 绿色 - 版本控制中不存在文件,并且为下一次提交暂存
  • 红色 - 版本控制中不存在文件,并且尚未为下一次提交暂存
  • 黄色 - 文件已从版本控制中的先前位置移开,但其内容尚未修改
  • 灰色(仅在 Active Changes 选项卡中)- 文件已在本地删除但不在版本控制中
  • White - No changes to the file since the last commit
  • Blue - File exists in version control and has been modified since the last commit
  • Green - File does not exist in version control and has been staged for the next commit
  • Red - File does not exist in version control and has not been staged for the next commit
  • Yellow - File has been moved from its previous location in version control, but its contents have not been modified
  • Grey (only in Active Changes tab) - File has been deleted locally but not in version control

因此,在您的示例中,您有两个已修改的文件已存在于版本控制中.

So in your example you have two modified files that already exist in version control.

正如 Zoe 指出的那样,这反映了 Android Studio 和 IntelliJ 中的默认配色方案.这些颜色可以通过 Settings -> 修改.编辑器->配色方案 ->VCS

As Zoe points out, this reflects the default colour scheme in Android Studio and IntelliJ. These colours may be modified via Settings -> Editor -> Color scheme -> VCS

这篇关于为什么一些 Android Studio 类用不同的颜色突出显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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