Skip to content

Commit

Permalink
update: add note explaining that worksheets aren't supported in K2 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
daniCsorbaJB committed Feb 3, 2025
1 parent e9d48f8 commit 8615446
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/topics/run-code-snippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ IntelliJ IDEA and Android Studio support Kotlin [scratch files and worksheets](h
To create a Kotlin worksheet in a project directory, right-click the directory in the project tree and select
**New** | **Kotlin Class/File** | **Kotlin Worksheet**.

> Kotlin worksheets aren't supported in [K2 mode](k2-compiler-migration-guide.md#support-in-ides).
>
{style="note"}

Syntax highlighting, auto-completion, and other
IntelliJ IDEA code editing features are supported in scratches and worksheets. There's no need to declare the `main()` function
– all the code you write is executed as if it were in the body of `main()`.
Expand Down

0 comments on commit 8615446

Please sign in to comment.