你已经联系过的"editor/title"
应该是正确的位置。以下是内置Markdown扩展的示例,其中uses it to add the "Open Preview To The Side" button位于.md
文件中:
"contributes": {
"menus": {
"editor/title": [
{
"command": "markdown.showPreviewToSide",
"when": "editorLangId == markdown",
"alt": "markdown.showPreview",
"group": "navigation"
}
]
}
}