After opening a ballerina file, the plugin will automatically detect the default ballerina SDK in the system. If the default system ballerina SDK is not detected, and if a custom SDK is not set, the plugin will prompt you to add an SDK.
You can configure custom ballerina SDKs by going to Settings -> Languages and Frameworks -> Ballerina -> SDK settings.
- Tick Use custom Ballerina SDK to enable custom selecting SDKs. Otherwise, the plugin will use the default system SDK.
- Click the dropdown to select the custom SDK.
-
Select an available SDK or add a new SDK by clicking the
Add Ballerina SDK
option. You can also selectNo SDK
to disable the plugin from using an SDK. -
If you selected
Add Ballerina SDK
option, you will be prompted to select the Ballerina distribution location.
-
Click
Apply
andOK
to save the changes.NOTE: A restart request will pop-up after applying added/changed project SDK and please continue by choosing
Restart
to restart IDEA and apply the SDK changes.