Reputation: 17726
Is it possible to create an add a custom menu to the main menu bar (preferably the File menu) in Visual Studio with an extension? I want to add a new project type.
Related question as this but for Visual Studio Code instead of Visual Studio: Adding a Menu to the Visual Studio Menu Bar within an Add-In
Upvotes: 1
Views: 5113
Reputation: 3510
I've been looking for the same thing, but currently, I don't think it's possible. This link describes how an extension can create menu items, but the only "contribution points" are in context menus. There is no contribution point for the top-level File menu. I have also been unsuccessful finding a configuration file for editing the existing menus.
Additionally, this other SO post seems to confirm this: VSCode: hiding some default menu items
opened https://github.com/microsoft/vscode/issues/74013
Upvotes: 2