search

Home  >  Q&A  >  body text

c# - VisualStudio里有没有类似Eclipse里的快速修复(快捷修复)一样的功能(快捷键)?

如题……不知道怎么描述,就是类似于eclipse里的Alt+/这样的快捷键,可以快速修复一些语法错误的。
不是安了番茄插件以后的ctrl+j那个快速代码提示。

大家讲道理大家讲道理2801 days ago820

reply all(5)I'll reply

  • 迷茫

    迷茫2017-04-21 11:18:43

    I don’t know if you mean Ctrl + . (same as Alt + Shift + F10)

    reply
    0
  • PHPz

    PHPz2017-04-21 11:18:43

    I have only used the one that comes with VS, but an error occurred. If I hover the mouse over the wrong place, I will be prompted whether a namespace is missing? Insert a quote with just one click.

    reply
    0
  • 阿神

    阿神2017-04-21 11:18:43

    alt+enter

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 11:18:43

    alt+ →

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 11:18:43

    I don’t know if this is the function you are talking about:

    If an error occurs, when the cursor moves to that position, a small icon will appear. Click to choose a quick fix

    If yes

    This function is called "Smart Tag". The default shortcut key is Ctrl+.. You can also modify it to other shortcut keys.

    If you have ReSharper installed, there is a powerful function called AltEnter, and the shortcut key is Alt+Enter, which is an upgraded version of smart tags.

    reply
    0
  • Cancelreply