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 ... }
}