Reputation: 54829
The list of extensibility points for the VS2010 Editor mentios creating EditorOptionDefinitions along with a small sample. When I attempt to do this I cannot find the options anywhere in the VS2010 UI. How do I create these so that they are surfaced in the UI?
Upvotes: 3
Views: 271
Reputation: 755151
To define a new Editor option in Vs2010 you need to do the following
EditorOPtionDefinition
or EditorOptionDefinition<T>
EditorOptionDefinition
. Example
[Export(typeof(EditorOptionDefinition))]
public sealed class SomeNewOption : EditorOptionDefinition<string> {
public override Default { get ... }
public override EditorOptionKey<string> Key { get ... }
}
Upvotes: 3