Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Latest commit

 

History

History

features

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Features

Running Ballerina programs

You can run Ballerina main/service programs with only few clicks. You don't have to add or change any configurations.

alt text

Debugging Ballerina programs

You can debug Ballerina main/service programs with only few clicks as well.

alt text

Import packages on the fly

This feature adds import declarations on the fly. All you need to do is selecting the package name from the lookup list and the package declaration will be added automatically.

alt text

Auto import unambiguous packages

When we copy and paste some Ballerina codes, this feature will automatically import unambiguous imports. Then we can manually import any packages with ambiguity using clicking on the package name and pressing Alt + Enter keys.

Note: Please note that this feature is disabled by default since this might cause issues if the file contain grammar mistakes. You can enable it by selecting the Add unambiguous imports on the fly CheckBox in Settings -> Languages and Frameworks -> Ballerina -> Auto Imports.

alt text

Parameter Infomation

You can view the required parameters of a functions, actions, etc by pressing Ctrl+P.

alt text

Quick Documentation

You can view the documentation of a functions, actions, etc by pressing Ctrl+Q.

alt text

Struct fields suggestions

Struct fields are suggested inside struct initializing braces and after the dot operator. Multi level struct field access is available.

alt text

Annotation fields suggestions

Annotation field names will be suggested inside annotation attachments.

alt text

Array length field suggestion

Array length property is now available. This is an array dimension aware suggestion.

alt text

Find Usage

You can find usage of variables, functions, structs, connectors, etc.

alt text

Go To Definition

You can go to definition of variables, function invocations, etc by Ctrl+Click on the reference.

alt text

Formatting

You can reformat the Ballerina codes by pressing Ctrl+Alt+L.

alt text

Path/Query Parameter validation

Path/Query parameter validation is available to improve usability.

alt text

Package Inspection

Package inspection is available to improve usability. This will suggest to add the package name if no package name is present. If an incorrect package name is present, it will suggest to change the package name. You can view these suggestions using Alt+Enter.

alt text

File Templates

Three types of Ballerina file templates are available.

  1. Ballerina Main - Contains a sample main program
  2. Ballerina Service - Contains a sample service
  3. Empty File

alt text

Live Templates

Live templates contains boilerplate codes and lets the user to enter them easily. All available live templates can be viewed/changed at Settings -> Editor -> Live Templates -> Ballerina.

alt text

Hidden Templates

Hidden templates are associated with most of the keywords. Hidden templates can be invoked by pressing Ctrl+Space after typing the keyword. Hidden template will be inserted when you select the keyword from the lookup element list as well.

alt text

Spell Checking

Spell checking is enabled for all identifiers. You can rename all of the definitions and references as well.

alt text