Hello,
Recently I asked this same question at StackOverflow: http://stackoverflow.com/q/14791592/114029
I'm interested in developing a really simple extension for VS that will fire when doing a Ctrl + K and then Ctrl + F (Format Selection for example). I couldn't find a good article on the matter. Something that goes straight to the point. It seems
that material on this area is scarce and scaring! :D Just try a Google search...
I saw this on this forum:
http://social.msdn.microsoft.
I was able to download the VS 2012 SDK and test the code. It works perfectly. Now I think it's just a matter of knowing where to look after and reuse that code... :)
Each HTML tag can have many attributes which are marked in red. So I think it's perfectly possible to recreate that tag placing a line break after each attribute and align them.
What do you think about my question? Is a VS extension for the HTML editor something feasible in this case? Can you point me in the right direction? What classes should I be looking at to manipulate the tag and its attributes?
Just to note: this functionality is already built in in the VS XAML editor. It's just not included in the HTML editor... Do you happen to know why?
Thanks for any advice,
Leniel Macaferi http://leniel.net