Decodes HTML- or URL-encoded text or C# escape sequences. After you install the extension two new menu items will appear in the Tools menu of Visual Studio.
These menu items will each have a sub-menu with three items:
Activating the "selected text" items wil replace whatever text is currently selected in your active document with the "decoded" version of that text. Acitvating the "clipboard text" items will replace the text on the clipboard with the "decoded" version of that text. The decodings performed by the "Decode HTML-encoded text" and "Decode URL-encoded text" functions use System.Net.WebUtility.HtmlDecode and System.Net.WebUtility.URLDecode, respecitvely so you can read the details of what translation is actually performed on those pages. The decoding performed by the "Decode C# escape sequences" function is bespoke so you'll have to view the source on GitHub if you're curious. As an example of operation, the "Decode Html-encoded text" function will replace the text <myElement> with <myElement>. Source code: https://github.com/cimryan/VSTextDecodingExtension |