VS Code has the concept of code actions. When a code action is available, VS Code displays a small lightbulb icon nearby 💡. Clicking on the lightbulb displays a list of available actions.
This mouse-based approach works, but it’s slow and cumbersome. Instead, navigate to the code in question, and use the keyboard shortcut
Sign up for my newsletter
A monthly round-up of blog posts, projects, and internet oddments.