弹出“快速修复”菜单的Visual Studio代码中的键盘快捷键是什么?

问题描述 投票:1回答:2

在Visual Studio Code IDE中,当它以红色波浪形为下划线代码时,如何弹出菜单以显示“快速修复”建议并选择一个建议的修复程序以应用于您的代码?带下划线的代码示例:

enter image description here

angular visual-studio-code keyboard-shortcuts autocorrect
2个回答
1
投票

在Mac上,使用Command +。用于弹出快速修复建议菜单的键。

在Windows上,使用Ctrl +。键。

然后,只需选择要应用于代码的“快速修复”建议。

Mac上的示例:

enter image description here


1
投票

对应问题的另一个可能是Ctrl+K Ctrl+I

© www.soinside.com 2019 - 2024. All rights reserved.