最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

VS Code extension add buttons to title bar? - Stack Overflow

programmeradmin1浏览0评论

How can I add buttons to the area highlighted in my screenshot? I don't see any mention of this in the extension docs, but I'm not sure what that part of the UI is called other than "title bar".

GitHub Copilot seems to be able to do it because it has an icon there in my screenshot, but I know that is maintained by MS and might do things that aren't normally possible though the extensions API...

How can I add buttons to the area highlighted in my screenshot? I don't see any mention of this in the extension docs, but I'm not sure what that part of the UI is called other than "title bar".

GitHub Copilot seems to be able to do it because it has an icon there in my screenshot, but I know that is maintained by MS and might do things that aren't normally possible though the extensions API...

Share Improve this question asked Feb 6 at 13:45 pyjamaspyjamas 5,3997 gold badges47 silver badges92 bronze badges 2
  • Is it something like in this post ? If you're trying to develop an extension, the zone seems to be called "editor/title". – matleg Commented Feb 6 at 15:10
  • @matleg I'm familiar with editor/title but that's not the zone I mean. That's the title bar for an editor pane, but I'm talking about the title bar for the VS Code window as a whole. This image highlights the two: imgur.com/KANBMQu – pyjamas Commented Feb 7 at 16:36
Add a comment  | 

1 Answer 1

Reset to default 3

There is no API available to that.

The GitHub Copilot you see there is built in on VS Code, not from GitHub Copilot extension. It was added to the recent launch of the free tier of GitHub Copilot, so the user has a kind of shortcut to install the extension.

Just as a side note, if you set workbench.editor.showTabs: none on your settings, any menu added to editor/title will be displayed in the title bar. Simply because there is no tab in the editor :-)

发布评论

评论列表(0)

  1. 暂无评论