slang25 / html-copy-vscode

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

Home Page:https://stu.dev/using-vs-code-for-my-blog-code-formatting/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

About

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

https://stu.dev/using-vs-code-for-my-blog-code-formatting/

License:MIT License


Languages

Language:F# 100.0%