我为我的VSPackage创建了一个自定义输出窗格:
// Creating Output Window for our package.
IVsOutputWindow output = GetService(typeof(SVsOutputWindow)) as IVsOutputWindow;
Guid guildGeneral = Microsoft.VisualStudio.VSConstants.OutputWindowPaneGuid.GeneralPane_guid;
int hr = output.CreatePane(guildGeneral, "Codex", 1, 0);
hr = output.GetPane(guildGeneral, out ApplicationConstants.pane);
ApplicationConstants.pane.Activate();
问题
当其他选项卡被选中时,如何选择输出(Output)选项卡?
Microsoft.VisualStudio.Shell
添加到您的引用中。请参见此处:https://msdn.microsoft.com/zh-cn/library/bb138962.aspx - A-Sharabiani