Diagram Editor

The Ballerina language possesses bidirectional mapping between its syntaxes and the visual representation. The Diagram Editor of the Ballerina extension helps you to visualize the graphical representation while developing your Ballerina program via the methods below.

Diagrams View

The Diagrams view shows a list of functions and services of the currently-opened Ballerina project. Once you make new changes, the Diagrams view syncs with the latest upon saving. By clicking on the listed diagram components, you can view the graphical representation of each of them.

Tip: Use the refresh button on the Diagrams view to list the available views.

Diagrams View

Show Diagram Button

By clicking on the Show Diagram button on the editor’s title bar, you can quickly switch to the Diagrams view. This option shows the diagram of the first component listed under the Diagrams view.

Tip: The Diagram Editor syncs with the latest when you make changes on the text editor.

Show Diagram Button

Show Diagram Palette Command

The Ballerina: Show Diagram command is available for quick access.