IDEA

本文详细介绍了在IDEA编辑器中不同颜色文件所代表的状态,包括已加入版本控制但未提交的绿色文件、未加入版本控制的红色文件、已提交且有改动的蓝色文件等。此外还解释了如何自定义这些文件的颜色。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

IDEA (或 Android Studio ) 文件名颜色分别表示的意思
 

在IDEA 编辑器里,有着各种颜色的文件, 它们代表的意思是什么呢? 如下




其实,这主要和你的版本控制工具相关

绿色,已经加入控制暂未提交
红色,未加入版本控制
蓝色,加入,已提交,有改动
白色,加入,已提交,无改动
灰色:版本控制已忽略文件。


另外:
些文件名的颜色都是可以修改的,颜色的意义是根据你的设置看的。

1、打开settings
2、Editor

3、File Status

所有的文件颜色都在这里设置。

 

 

Symbols

In this section:

Common

IconDescription
classTypeJavaClassClass
classTypeAbstractAbstract class
classTypeAnnotAnnotation
classTypeEnumEnumeration
classTypeExceptionException
imgFinal Java class
classTypeInterfaceInterface
classTypeMainJava class that contains declaration of the main() method.
classTypeTestCaseTest case
classTypeJavaOutOfSourceRootJava class located out of the source root. Refer to the section Configuring Content Roots for details.
excludeFromCompilation.pngJava class excluded from compilation.
/help/img/idea/2016.3/phpTrait.pngPHP trait
methodMethod
/help/img/idea/2016.3/method_abstract.pngAbstract method
fieldField
/help/img/idea/2016.3/variable.pngVariable
propertyProperty
/help/img/idea/2016.3/property_yellow.pngParameter
/help/img/idea/2016.3/xml_element.pngElement
/help/img/idea/2016.3/folder.pngDirectory
/help/img/idea/2016.3/moduleFolder.pngModule
/help/img/idea/2016.3/groupOfModules.pngGroup of modules
/help/img/idea/2016.3/iconPackage.pngPackage
/help/img/idea/2016.3/rootSource.gifSource root
/help/img/idea/2016.3/rootTest.gifTest root
/help/img/idea/2016.3/rootExcluded.gifExcluded root
/help/img/idea/2016.3/rootResourceIJ.pngResources
/help/img/idea/2016.3/rootTestResourceIJ.pngTest resources
/help/img/idea/2016.3/rootGeneratedSourceIJ.pngGenerated source roots
/help/img/idea/2016.3/rootGeneratedTestSourceIJ.pngGenerated test source roots
Visibility modifiers
/help/img/idea/2016.3/locked.pngRead-only class, e.g. from a jar of an external library.
private.pngprivate
protected.pngprotected
package_protected.pngpackage protected
/help/img/idea/2016.3/staticMark.pngstatic
public.pngpublic

Data Sources

IconDescription
/help/img/idea/2016.3/DataSource.pngDB data source. Also, DBMS-specific icons are used:

/help/img/idea/2016.3/DBDB2.png DB2

/help/img/idea/2016.3/DBDerby.png Derby

/help/img/idea/2016.3/DBH2.png H2

/help/img/idea/2016.3/DBHSQLDB.png HSQLDB

/help/img/idea/2016.3/DBMySQL.png MySQL

/help/img/idea/2016.3/DBOracle.png Oracle

/help/img/idea/2016.3/DBPostgresql.png PostgreSQL

/help/img/idea/2016.3/DBSQLServer.png SQL Server

/help/img/idea/2016.3/DBSQLite.png SQLite

/help/img/idea/2016.3/DBSybase.png Sybase

/help/img/idea/2016.3/DBReadonly.pngDB data source with the read-only status, e.g. /help/img/idea/2016.3/DBReadonlyDB2.png for DB2.
/help/img/idea/2016.3/icon_DDLDataSource.pngDDL data source
/help/img/idea/2016.3/dataSchema.pngSchema
/help/img/idea/2016.3/DataTables.pngTable
/help/img/idea/2016.3/dataView.pngView
/help/img/idea/2016.3/dataColumn.pngColumn
/help/img/idea/2016.3/dataColumnNotNull.pngNOT NULL column
dataPkColumn.pngColumn with a primary key
dataFkColumn.pngColumn with a foreign key
dataIndexedColumn.pngColumn with an index
/help/img/idea/2016.3/dataPrimaryKey.pngPrimary key
/help/img/idea/2016.3/dataForeignKey.pngForeign key
/help/img/idea/2016.3/dataIndex.pngIndex
/help/img/idea/2016.3/dataTrigger.pngTrigger
/help/img/idea/2016.3/dataFunction.png

转载于:https://my.oschina.net/u/2458549/blog/831972

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值