How to make bulb menu?

Viewed 69

I want to develop about bulb menu in the VSCode extension.

How to open the bulb menu. I can't find the name of the bulb menu. What is actually a name?

It is hard to find a name though I am not an English speaker. enter image description here

1 Answers

The items in the “bulb menu” are called Code Actions or Quick Fixes (see this documentation).

A code action represents a change that can be performed in code, e.g. to fix a problem or to refactor code.

The VSCode extension API docs provide more context on how extensions can provide Code Actions here. A Code Action can provide a WorkspaceEdit to perform (to amend the text the user entered, for example), or it can provide a Command to run for more complex actions.

Related