Skip to content

Commit 8fc64f0

Browse files
authored
update: add warning that worksheets aren't supported in K2 mode (#4687)
* update: add note explaining that worksheets aren't supported in K2 mode * implementing review comments * making it into a warning * changing the wordin based on review comments * removing yet
1 parent ac8394d commit 8fc64f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/topics/run-code-snippets.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ IntelliJ IDEA and Android Studio support Kotlin [scratch files and worksheets](h
2424
To create a Kotlin worksheet in a project directory, right-click the directory in the project tree and select
2525
**New** | **Kotlin Class/File** | **Kotlin Worksheet**.
2626

27+
> Kotlin worksheets aren't supported in [K2 mode](https://blog.jetbrains.com/idea/2024/11/k2-mode-becomes-stable/). We're working on providing an alternative with similar functionality.
28+
>
29+
{style="warning"}
30+
2731
Syntax highlighting, auto-completion, and other
2832
IntelliJ IDEA code editing features are supported in scratches and worksheets. There's no need to declare the `main()` function
2933
– all the code you write is executed as if it were in the body of `main()`.

0 commit comments

Comments
 (0)