如何获取用于绑定的命令ID

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

我想运行带有键绑定'ctrl + m'的命令'Emmet:Go to Matching Pair'

'Emmet:转到匹配对'正是我在ctrl + shift + P上看到的内容>

这里在keybindings.json中是keybind:

{
    "key": "ctrl+m",
    "command": "Emmet: Go to Matching Pair",
    "when": "editorTextFocus"
}

错误:

找不到命令“ Emmet:转到匹配对”

如何获取命令的正确ID?

我想运行带有键绑定'ctrl + m的命令'Emmet:Go to Matching Pair''Emmet:Go to Matching Pair'正是我在ctrl + shift + P上看到的,这里keybind在keybindings.json中:{ “ key”:“ ctrl + m” ...

visual-studio-code
1个回答
0
投票

您几乎明白了。但是,不必输入命令名称,而必须输入命令ID

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