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:
Clicking on the Code Action lightbulb or using the Quick Fix command Ctrl+. will display Quick Fixes and refactorings. If you'd just like to see refactorings without Quick Fixes, you can use the Refactor command (Ctrl+Shift+R).
Follow these steps: Press Alt to make menu visible. Click on the View menu, navigate to the Appearance option and choose Show Menu Bar.
To launch the Define Keybinding widget, press Ctrl+K Ctrl+K. The widget listens for key presses and renders the serialized JSON representation in the text box and below it, the keys that VS Code has detected under your current keyboard layout.
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:
The one more corresponding to the question is probably Ctrl+K Ctrl+I
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With