ibeautiful
只需右键单击解决方案资源管理器中的文件 > 打开方式。然后简单地配置它:Visual Studio 是最好的 IDE 之一,如果不是最好的,不确定您为什么要使用写字板,但至少这将使您免于制作扩展。如果您确实想这样做,这里有一个示例,说明如何将菜单项添加到上下文菜单中,它会为您提供 google 的关键字:Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBar = ((Microsoft.VisualStudio.CommandBars.CommandBars)_applicationObject.CommandBars)["MenuBar"];CommandBarControl toolsControl = menuBarCommandBar.Controls[toolsMenuName];CommandBarPopup toolsPopup = (CommandBarPopup)toolsControl;Command command = commands.AddNamedCommand2(_addInInstance, "AddinMultiLineWatch", "AddinMultiLineWatch", "Executes the command for AddinMultiLineWatch", true, 59, ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled, (int)vsCommandStyle.vsCommandStylePictAndText, vsCommandControlType.vsCommandControlTypeButton);if((command != null) && (toolsPopup != null)){ command.AddControl(toolsPopup.CommandBar, 1);}