我为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();
问题
当前选择其他标签时,如何选择输出标签?
答案 0 :(得分:1)
激活(焦点)Visual Studio的输出窗口:
[MyClassAttribute]
public SomeClass
{
}