Visual Studio 2017 Extension development tutorial, Part 3: Add to context menu, Get selected code

from blog Blog posts on .NET Software Development, C#, and Debugging on Michael's Coding Spot, | ↗ original
In part 2 of the tutorial we created a simple VS extension with a single Menu item. The extension will eventually be able to add code documentation in a separate file (.cs.cdocs) and view it in a nice Heads-Up display. The tutorial explains every step of the way to build such an extension. For starters, we need the ability to select a piece of...