Skip to content

Commit c7bc198

Browse files
committed
Added vs-code pointer
1 parent f925e04 commit c7bc198

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,10 @@ On the other hand this doesn't embed dependencies within the script("fat jar"),
483483
FAQ
484484
---
485485

486+
### How to edit kscript in VS Code?
487+
488+
See https://magnusgunnarsson.se/offentlig/kscript-in-visual-studio-code-vsc/ for a walkthrough and the required editor configuration.
489+
486490
### Why is `kscript` not calling the main method in my `.kts` script?
487491

488492
There is [no need](https://kotlinlang.org/docs/tutorials/command-line.html#using-the-command-line-to-run-scripts) for a `main` method in a Kotlin script. Kotlin `*.kts` scripts can be more simplistic compared to more common kotlin `*.kt` source files. The former work without a `main` method by directly running the provided code from top to bottom. E.g.

0 commit comments

Comments
 (0)