Completely local print support for VS Code with syntax-colouring and line numbering
TypeScript
91
870 commits
updated Jun 16, 2026
![]()
Print code. Print rendered Markdown. Local or remote. Windows, Mac or Linux.
When you launch a preview of a Markdown document from the active editor, if you edit that file and stop making changes for three seconds, the proview will update in the browser. Hot preview also supports find-in-source. If you're proof-reading the rendered document and you find an error, double-clicking the paragraph will find and highlight the first line in the editor. You can adjust the settling delay in settings.
Important - if you intend to use hot preview while editing diagrams in Markdown, set up a local Kroki server and configure Print to use it. If you fail to do this you will very quickly find yourself rate-limited by the public server.
Print-jobs are rendered as styled HTML and served from an embedded webserver. Your local web browser is launched to load the print-job and give you printing options like paper size, page orientation and margin size.
So if you have a local browser that can print, and VS Code can launch it, you can print.
SPOILER fenced code blocks let you create interactive content that hides answers, explanations, or solutions until clicked. Perfect for tutorials, exercises, and educational materials.
show: Teaser, label or spoiler warning here
hide: Hidden content goes here. The butler did it!
Your hidden content goes here - code examples, explanations, or any markdown content.
When printing, spoiler content is displayed with clear labeling so nothing is lost in the printed output.

The print and print preview icon are on the toolbar when there is an active editor. VS Code shows extension contributions according to the language of the active editor. No active editor means no icons (someone thought we should "fix" this).
![]()
If you have a text selection that crosses at least one line-break you can right click and choose Print or Print preview from the context menu to send just the selection to the printer. In the absence of a multi-line selection the entire document is printed. You can control the position of Print and Print preview in this menu, or remove it altogether.

Or you can right-click on a file in the file explorer pane and choose Print or Print preview from the context menu.
There are a number of settings. Most of them you just need to read the descriptions on the settings page, but we're old school and we wrote a manual. If things aren't going well, consider reading it. If you have first-use problems, the manual contains a troubleshooting guide.
Some things you can configure:
external containing a URL and metadata, allowing a wide range of external resources to be linked into a Markdown documentTypeScript
80.6%
JavaScript
11.6%
Go Template
4.6%
CSS
2.5%
Completely local print support for VS Code with syntax-colouring and line numbering
TypeScript
91
870 commits
updated Jun 16, 2026
![]()
Print code. Print rendered Markdown. Local or remote. Windows, Mac or Linux.
When you launch a preview of a Markdown document from the active editor, if you edit that file and stop making changes for three seconds, the proview will update in the browser. Hot preview also supports find-in-source. If you're proof-reading the rendered document and you find an error, double-clicking the paragraph will find and highlight the first line in the editor. You can adjust the settling delay in settings.
Important - if you intend to use hot preview while editing diagrams in Markdown, set up a local Kroki server and configure Print to use it. If you fail to do this you will very quickly find yourself rate-limited by the public server.
Print-jobs are rendered as styled HTML and served from an embedded webserver. Your local web browser is launched to load the print-job and give you printing options like paper size, page orientation and margin size.
So if you have a local browser that can print, and VS Code can launch it, you can print.
SPOILER fenced code blocks let you create interactive content that hides answers, explanations, or solutions until clicked. Perfect for tutorials, exercises, and educational materials.
show: Teaser, label or spoiler warning here
hide: Hidden content goes here. The butler did it!
Your hidden content goes here - code examples, explanations, or any markdown content.
When printing, spoiler content is displayed with clear labeling so nothing is lost in the printed output.

The print and print preview icon are on the toolbar when there is an active editor. VS Code shows extension contributions according to the language of the active editor. No active editor means no icons (someone thought we should "fix" this).
![]()
If you have a text selection that crosses at least one line-break you can right click and choose Print or Print preview from the context menu to send just the selection to the printer. In the absence of a multi-line selection the entire document is printed. You can control the position of Print and Print preview in this menu, or remove it altogether.

Or you can right-click on a file in the file explorer pane and choose Print or Print preview from the context menu.
There are a number of settings. Most of them you just need to read the descriptions on the settings page, but we're old school and we wrote a manual. If things aren't going well, consider reading it. If you have first-use problems, the manual contains a troubleshooting guide.
Some things you can configure:
external containing a URL and metadata, allowing a wide range of external resources to be linked into a Markdown documentTypeScript
80.6%
JavaScript
11.6%
Go Template
4.6%
CSS
2.5%