2Aguy
2Aguy

Reputation: 4625

What is the keyboard shortcut in Visual Studio Code to pop up the Quick Fix menu?

In the Visual Studio Code IDE, when it red squiggle underlines code, how do you pop up the menu to show "Quick Fix" suggestions and choose one of the suggested fixes to apply to your code? Example of underlined code:

enter image description here

Upvotes: 35

Views: 27607

Answers (2)

Zwyx
Zwyx

Reputation: 643

The one more corresponding to the question is probably Ctrl+K Ctrl+I.

showHover shortcut

Upvotes: 6

2Aguy
2Aguy

Reputation: 4625

On the Mac, use the Command + . keys to pop up a menu of Quick Fix suggestions.

On Windows, use the Ctrl + . keys.

Then just select the Quick Fix suggestion that you want to apply to your code.

Example on the Mac:

enter image description here

Upvotes: 67

Related Questions