You can easily create a new ballerina file by right-clicking on the required location of the directory tree in the project pane. Select New -> Ballerina File.
Three types of Ballerina file templates are available.
- Empty Ballerina File
- Ballerina Main - Contains a sample main program
- Ballerina Service - Contains a sample service