Search code examples
visual-studiovisual-studio-extensionsvisual-studio-sdk

How can I find out what classification types are registered in Visual Studio


I can use IClassificationTypeRegistryService.GetClassificationType to get classification types. This is great and I can get the predefined types lists here: https://msdn.microsoft.com/en-us/library/microsoft.visualstudio.language.standardclassification.predefinedclassificationtypenames.aspx

I've also been able to find some types registered by other languages such as "cppType". I can't remember how I found out what the names are for other types and need to access some more.

How do I enumerate the available classification types?


Solution

  • Ok, I found I can hover over an instance of IClassificationTypeRegistryService in the debugger and inspect a private member which is an array that lists them.