How to pre-filter showCommands in VSCode's quickOpen panel

后端 未结 1 1396
天命终不由人
天命终不由人 2021-01-15 15:34

I got a few extensions that add 4, 6 or more commands and I don\'t want to set a shortcut for each of them. Ideally I could create a shortcut to show all commands of that ex

相关标签:
1条回答
  • 2021-01-15 16:17

    Try using this (with whatever keybinding you choose) :

    {
      "key": "alt+z",
      "command" : "workbench.action.quickOpen", 
       "args"   : ">task marks",
       "when"   : "editorTextFocus"
    }
    

    I got the syntax from issues: adding an argument to the quickOpen panel.

    Oddly, this will not work:

    "command": "workbench.action.showCommands", 
    "args": "task marks",
    

    Only the workbench.action.quickOpen command will take the argument.

    0 讨论(0)
提交回复
热议问题