Code navigation

The Ballerina VS Code extension provides code actions to simplify the developing process of your code.

The Ballerina VSCode extension provides support for code navigation. Different kinds of supported navigations are described in the following sections.

Go to definition

The Go to definition feature navigates you to the definition of a particular symbol. For example, when you invoke the Go To Definition option on a function call expression, it navigates you to the definition of the function.

Go to symbol

The Go to symbol feature allows you to navigate symbols inside a file.

Find all references

Invoking the references (right click on a symbol and select Find All References) on a symbol will prompt you with all the symbol references in the current project.

Peek

This feature allows you to peek the definition or references of a given symbol.

Rename symbols

This feature allows you to rename symbols by renaming all the references of the particular symbol.