Join Slack
Communities
Powered by
Why sometimes IDEA shows file extensions .kt? Is t...
# getting-started
v
ValV
11/03/2018, 10:23 AM
Why sometimes
IDEA
shows file extensions
.kt
? Is this because it does not find a class with the same name inside?
a
APXEOLOG
11/03/2018, 10:46 AM
It shows it when your file has something else at the top-level except for a class declaration
APXEOLOG
11/03/2018, 10:47 AM
Because you can have multiple top level things in one file, that way idea shows you that this is a file not a single class
v
ValV
11/03/2018, 10:54 AM
I thought, it did hide extension, when there were two top-level classes
ValV
11/03/2018, 11:05 AM
Aren't there some annotations to point that it should be a class?
15
Views
Open in Slack
Previous
Next