Skip to content

Instantly share code, notes, and snippets.

View justcla's full-sized avatar

Justin Clareburt justcla

View GitHub Profile
@madskristensen
madskristensen / VSIX UIContext
Last active January 15, 2021 00:58
Shows how to add custom UIContexts
On the package
[ProvideAutoLoad(UIContexts.LoadContext)]
[ProvideUIContextRule(UIContexts.LoadContext,
"RightFileTypeOpen",
"(CSharpFileOpen | VBFileOpen)",
new[] { "CSharpFileOpen", "VBFileOpen" },
new[] { "ActiveEditorContentType:CSharp", "ActiveEditorContentType:Basic" })]
In the VSCT