A global tool to convert snippets copied from VS Code into plain html to paste into your blog.
Clone or download
Latest commit 7586754 Jan 21, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HtmlCopyVSCode.Clipboard Tidy up Jan 21, 2019
HtmlCopyVSCode Add macOS support Jan 21, 2019
.gitignore Small refactoring 💄 Jul 29, 2018
Directory.Build.props Add nuget metadata Jul 29, 2018
HtmlCopyVSCode.sln Tidy Jul 28, 2018
LICENSE Create LICENSE Jul 29, 2018
README.md Update README 📝 Jul 29, 2018
azure-pipelines.yml Set up CI with Azure Pipelines Oct 12, 2018

README.md

html-copy-vscode

A global tool to convert snippets copied from VS Code into plain html to paste into your blog.

NuGet License

Installation

dotnet tool install -g HtmlCopyVSCode

Usage

In VS Code, copy some code to the clipboard with Ctrl+C (or Cmd+C on macOS), then run the tool:

html-copy-vscode

Now your clipboard contains the html snippet in plain text.

To remove most of the style on the root element and to add your own class, use the --class/-c switch like this:

html-copy-vscode -c vscode

Know Issues

At the moment, only Windows is supported. macOS support is possible, but will take time (unless someone knows a quick way to aquire and distribute Xamarin.Mac which looks like the easiest option).