How to create an editor in the new Extensibilty VS2010 editor

list of extensibility points for VS2010 editor editors creating EditorOptionDefinitions along with a small sample. When I try to do this, I cannot find the parameters in the VS2010 user interface. How to create them so that they appear in the user interface?

+3
source share
1 answer

To define a new editor option in Vs2010, you need to do the following

  • Create a class derived from EditorOPtionDefinitionorEditorOptionDefinition<T>
  • Add export EditorOPtionDefinition.
  • Make sure the assembly where it is defined is listed as a MEF component

Example

[Export(typeof(EditorOptionDefinition))]
public sealed class SomeNewOption : EditorOptionDefinition<string> {
  public override Default { get ... } 
  public override EditorOptionKey<string> Key { get ... }
}
+3

Source: https://habr.com/ru/post/1731681/


All Articles