Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to print a file from VsCode?

I want to send the file I'm currently editing to a printer, like I did in Notepad++ for example. I havn't found any hint on a print command. Is it not possible ?

like image 642
Eric Bole-Feysot Avatar asked Apr 29 '16 09:04

Eric Bole-Feysot


People also ask

Can you print from Visual Studio code?

Simply install the extension within VS Code or by going to the Visual Studio Marketplace. Next restart VS Code. Open the code you'd like to print, press F1 and type PrintCode and press enter.

How do I export VS Code to PDF?

Once you install the extension, go to Builds hub and right-click on any build definition. You will see a new menu item Export as PDF . Click on it and you will be able to select what to include in the report. Chose the sections you want to be included in the PDF and click Export as PDF .

How do I print text in Visual Studio?

To print the current text editor's contents, select Print from the File menu. The Print dialog box is fairly standard, allowing you to select your printer and set basic print properties.


2 Answers

It is not yet available, but I found an issue report for that feature.

It's currently in the backlog, so we can expect it soon.

https://github.com/Microsoft/vscode/issues/5953

Edit: In the meantime:

  • https://marketplace.visualstudio.com/items?itemName=nobuhito.printcode
  • https://marketplace.visualstudio.com/items?itemName=pdconsec.vscode-print
like image 171
Eric Bole-Feysot Avatar answered Oct 16 '22 05:10

Eric Bole-Feysot


Now you can install addon for VS Code - search "PrintCode".

Note that the repository for this extension was last updated in February 2018 with numerous issues outstanding.

like image 34
SL ART Avatar answered Oct 16 '22 05:10

SL ART