Running kotlin files in VS code terminal, kotlinc not recognized

2.1k Views Asked by At

I want to run Kotlin code in VS Code rather than IntelliJ or any other IDE because it's the one I've been using for the longest time and I got used to it. I searched on YT and Google how to achieve this and basically, I got that I have to install the code runner extension (which I already had) and kotlinc (V 1.6). I installed the files into my Program Files folder and added the bin path to the PATH in the environment variables, tried to run the code, and got an error saying that "kotlinc is not recognized as a cmdlet". I followed the installation tutorial as is so I don't know where I went wrong when installing kotlinc. If someone has encountered this issued before and knows what the cause is or know of another way of running Kotlin in VS Code I'd be happy to know :)

0

There are 0 best solutions below