I'd like to create some sort of Visual Studio add on where I could hover over a line like:
public int counter {get; set;}
and upon selecting my menu item (or light bulb), it would insert a line similar to the following above it:
[DataMember Order=1]
public int counter {get; set;}
I found this example: https://msdn.microsoft.com/en-us/library/dn903708.aspx
but I'm not sure it's taking me in the right direction. I was thinking that adding a menu item might make sense (so I could bind it to a keyboard shortcut), but the tricky part would be intelligently setting the "Order" parameter based on an observation of other instances of that attribute nearby.
Any suggestions?