Skip to content

VS Code — Paste HTML Content

VS Code Paste text/html content from a web page

VS Code has rolled out a handy new feature.

Now you can paste HTML content from a web page, instead of pasting it as plain text.

How to

Copy some content from a web page and then go to VS Code.

Press CTRL + SHIFT + P, search for the Paste As… command and select Insert HTML.

🎥 Prefer a video instead?

This feature can be useful when you want to copy a simple HTML structure.

You can also notice that the code is not indented properly, so you’ll ned to do that yourself.

Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.