Print code. Print rendered Markdown. Local or remote. Windows, Mac or Linux.
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.
Classic user experience
The print icon on the toolbar prints the document in the active editor.
If you have a text selection that crosses at least one line-break you can right click and choose
Or you can right-click on a file in the file explorer pane and choose Print 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 your way, maybe you should read it. If you have first-use problems, the manual contains a troubleshooting guide.
Some things you can configure:
As of version 1.0.0 Print exports an API that allows another extension to register for print and preview services.
The Print SDK includes a complete worked example that demonstrates how to
The sample is annotated with