How to start working with ballerina language?

158 Views Asked by At

I have downloaded windows visual studio and the I installed Ballerina extension but whenever I try to open the ballerina extension it shows a message " Ballerina Swan Lake is not a legitimate application or plug in". Can someone please guid me how to start programming on Ballerina language ?

1

There are 1 best solutions below

1
On

Easiest way to get started is to follow this getting started article here.

If you would like to start with visual studio code, apart from the Ballerina plugin you need to download and install Ballerina platform (Compiler and runtime). You can download it here.

After installing everything, create a new file in VS code and save it with the file extension .bal, (ex: hello.bal), VS code should auto pickup that this is a ballerina program.

Depending on the configurations on your VS code instance you will get one or both of highlighted ways to run your program from the VS code.

Screenshot of Ballerina code in VS Code