gpt4 book ai didi

visual-studio-code - 是否可以在编辑器右侧添加新菜单栏 - VSCode 扩展?

转载 作者:行者123 更新时间:2023-12-04 01:56:46 27 4
gpt4 key购买 nike

在右上角的编辑器中,有什么方法可以添加新的菜单栏项并在其上附加命令吗?

据我所知,我只能使用 "menus" / "editor/title" 向现有菜单项添加条目。 .

enter image description here

最佳答案

您已经链接到的

"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"
}
]
}
}

关于visual-studio-code - 是否可以在编辑器右侧添加新菜单栏 - VSCode 扩展?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49994312/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com