Skip to content

Running Kotlin file without class #321

Closed
@dvanderleij

Description

@dvanderleij

Motivation

In IntelliJ I can run a Kotlin file that does not have a class: e.g. a file named Main.kt

fun main() {
    println("hello World")
}

(No enclosing class)

Description

I would like to see a run/debug button just like in Java in VScode above this main function to run this.
image

Alternatives considered

Using IntelliJ, creating a class wrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions