07-20-2023, 12:41 PM
In `Java`, especially in `Android studio`, every time that I want to run or test some `Java` source code quickly, I will create `public static void main` (shortkey: *`psvm + tab`*) and the IDE will show "Play" button to run it immediately.
[![enter image description here][1]][1]
Do we have some kind of `psvm` in `Kotlin` - an entry point or something in order to run or test anything that quickly? Did try with this function but it wasn't working. (Even try with `@JvmStatic`). Can we config somewhere in `Android studio`?
fun main(args: Array<String>) {
}
[1]:
[![enter image description here][1]][1]
Do we have some kind of `psvm` in `Kotlin` - an entry point or something in order to run or test anything that quickly? Did try with this function but it wasn't working. (Even try with `@JvmStatic`). Can we config somewhere in `Android studio`?
fun main(args: Array<String>) {
}
[1]: