.kt
Low riskKotlin source code
JetBrains' JVM language. Google's preferred language for Android and a more concise alternative to Java on the JVM.
MIME types
- text/x-kotlin
Category
code
Aliases
.kts
What opens this file
- Android Studio
- IntelliJ IDEA
- VS Code + Kotlin extension
How to open by OS
Windows
- Android Studio, IntelliJ.
Mac
- Same.
Linux
- Same.
Ios
- Kotlin Multiplatform shares logic (UI stays Swift).
Android
- Official language.
Safety notes
- Because Kotlin runs on the JVM, the same supply-chain issues as Java (Log4j, etc.) apply.
Common mistakes
- Overusing
!!throws away Kotlin's null safety and returns NullPointerException to your codebase. - Gradle Groovy → Kotlin DSL migrations can break CI when plugin versions aren't pinned.