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

2Aguy picture 2Aguy · Nov 14, 2017 · Viewed 7.8k times · Source

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

Answer

2Aguy picture 2Aguy · Nov 14, 2017

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