开发者

Removing editor tags with Visual Studio SDK

Is it possible to remove already applied editor tags? I only found a way to add new tags, but this doesn't allow me to override or remove existing tags.

As a sidenote, my scenario is the followin开发者_如何学Pythong: I'm trying to add a new keyword to the C# language. My first step is to prevent the keyword from being indicated as an error by ReSharper. I believe ReSharper added an ErrorTag on the invalid keyword, which is the one I am trying to remove/override.


It would appear that because editor tags are setup via Attributes on classes, you won't be able to remove tags from extensions that you own, in this case ReSharper. I think that if you want to achieve your described goal you are just going to have to deal with the error indications.

From MSDN:

[Export(typeof(ITaggerProvider))]
[ContentType("text")]
[TagType(typeof(TestTag))]
internal class TestTaggerProvider : ITaggerProvider

You can see the 'TagType' attribute on the class 'TestTaggerProvider' that actual does the tagging within the IDE.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜