This post is more than 2 years old.
Just a quick note to say I've released a new extension for Visual Studio Code. This extension simply takes a document and outputs an escaped version of it appropriate for blog posts or other online forums. This is basically the same thing I built for Brackets, but it wasn't possible for Visual Studio Code until the release this month. Here's an example of how it looks.
The code I used was based on a simple example made by Erich Gamma of Microsoft. Shoot, 90% of the code is his and I just modified the bare minimum to create my extension. You can find my code here (https://github.com/cfjedimaster/htmlescape-vscode and you can install it directly within Visual Studio Code itself. You can also download the packaged version from the gallery as well.