Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala file symbols in Intellij

In IntelliJ, following file symbols(image also shows partial file name) are displayed:

enter image description here

I can understand first three symbols. What does last one stand for?

like image 304
Mandroid Avatar asked Oct 30 '25 14:10

Mandroid


1 Answers

enter image description here

  1. File MyClass.scala with class MyClass

  2. File MyClass1.scala with object MyClass1

  3. File MyClass2.scala with trait MyClass2

  4. File MyClass4.scala with class MyClass4 and companion object MyClass4

  5. File MyClass5.scala with trait MyClass5 and companion object MyClass5

  6. File MyClass6.scala that contains not only (or different from) object, trait or class MyClass6 (and possibly its companion object). For example here file MyClass6.scala contains class MyClass6 and class MyClass7.

And yes, Scala worksheet has the same icon as 6.

like image 81
Dmytro Mitin Avatar answered Nov 01 '25 04:11

Dmytro Mitin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!