Code Actions

The editor is provided with so-called Code Actions - Quick Fixes and refactorings for the text currently under the caret. The available code action is annotated with a light bulb next to the text.

Light Bulb in VS Code

Available code actions are listed by clicking on the light bulb or pressing an associated keyboard shortcut (by default) Ctrl+..

Certain errors have also Quick Fix available. This provides the same list of code actions that should resolve the issue.

Quick Fix in VS Code

Details:

See Code Actions Overview for more details.

See also