How to open the lightbulb via shortcut?

后端 未结 2 444
日久生厌
日久生厌 2020-12-25 09:28

Some languages support code actions which display a lightbulb providing quick fixes for a warning/error (See https://code.visualstudio.com/docs/editor/editingevolved#_code-a

2条回答
  •  醉话见心
    2020-12-25 09:47

    The correct command editor.action.quickFix. The default binding on Windows looks like this:

    { "key": "ctrl+.", "command": "editor.action.quickFix",
                       "when": "editorTextFocus" }
    

    On Mac it's CMD + ..

提交回复
热议问题