【问题标题】:What is the keyboard shortcut in Visual Studio Code to pop up the Quick Fix menu?Visual Studio Code 中弹出快速修复菜单的键盘快捷键是什么?
【发布时间】:2018-04-27 11:53:00
【问题描述】:

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

【问题讨论】:

  • 我使用 Linux,右键单击快速修复可用性,我会弹出一个 ctrl+,这是我的 zoom。我可以更改此弹出窗口以显示用作快捷方式的ctrl+.

标签: angular visual-studio-code keyboard-shortcuts autocorrect


【解决方案1】:

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

在 Windows 上,使用 Ctrl + . 键。

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

Mac 上的示例:

【讨论】:

  • 在我的环境中,在windows上无法使用,如何查看快捷方式是否被其他软件占用?
【解决方案2】:

另外一个对应问题的大概是Ctrl+K Ctrl+I

【讨论】:

    猜你喜欢
    • 2017-06-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-05-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多