none
How do you print in Visual Studio Code?

All replies

  • Hi,

    Console.WriteLine("Text to print");

    Thanks, Please mark this answer if helpful.


    • Edited by Shafiq Abbas Saturday, February 13, 2016 12:10 PM
    Saturday, February 13, 2016 12:10 PM
  • The question is simple.  How can you print from within Visual Studio Code?

    Do you mean print to screen or print to a printer ?


    n.Wright

    Saturday, February 13, 2016 7:51 PM
  • I would like to know how to print the program I'm editing with VS Code to a printer
    Friday, June 17, 2016 6:49 PM
  • Apparently microsoft took a page from Sublime Text and decided that actually printing something out is a low priority, outdated use for a TEXT EDITOR.

    In short, doesn't look like you can print to a printer at all with it.  But, as some "brilliant" person said on a similar topic for Sublime, just copy it into an editor that can print and print from that!

    Friday, September 16, 2016 7:49 PM
  • Simple answer: Visual Studio Code does not print :(


    • Edited by Hanko Panko Friday, December 09, 2016 11:09 PM
    Friday, December 09, 2016 11:09 PM
  • In this case I recommend use Notepad++. I have the portable version only to print my codes.
    Friday, February 24, 2017 10:14 PM
  • The question is simple.  How can you print from within Visual Studio Code?

    If you use google drive, you can right click on the file in explorer and select Google Drive->View on the web and then print it.

    John

    Tuesday, August 15, 2017 7:16 PM
  • Agreed, this is completely insane

    Were the M$ devs smoking something or perhaps just had a common sense bypass?

    Saved me the time searching anyway!

    Sunday, October 22, 2017 2:24 PM
  • I need to do this as well. Copy paste won't work as I want to keep the same format, font, colours etc. 
    Monday, October 30, 2017 5:08 PM
  • Agreed, this is completely insane

    Were the M$ devs smoking something or perhaps just had a common sense bypass?

    I'm sure the money-hungry M$ corporation would happily refund the money you spent on this free product.
    Monday, October 30, 2017 6:28 PM
  • So are you suggesting that since the program is free we should all just hold hands and drink the kool-aid when it lacks features that even the most basic text editor on the planet should include?

    I like VS Code. A lot. But the lack of a printing functionality is just bone headed and dumb. Since they seem to be following in the footsteps of Sublime and Atom on this I am going to assume that some hipster "modern" web developer made the assumption that since most people use electronic devices no one would ever actually want a hard copy. I expect this from the Sublime and Atom crowd. I also expect the guys at Microsoft to be a little more old school and exercise some common sense.

    For those reading this that are fortunate enough to use VS Code on Linux, most Linux distros include the 'lpr' utility by default, which prints to the default system printer. Typical usage is ```lpr <filename>``` or ```lpr filename -o page-ranges=2-6>```

    This should work fine from the embedded terminal in VS Code. Might even work on one of those cutesy coffee shop laptops. Not sure if the Jobsians stripped lpr out of OSX.

    Wednesday, November 08, 2017 8:11 PM
  • It's insane, but... In Windows, select all text (CTRL+A) and Copy&paste into Word, which retains the formatting.  "Landscape Orientation" and "Narrow Margins" looks best.
    Wednesday, January 03, 2018 7:20 PM
  • I use an extension.

    Its called "PrintCode"

    When you have installed it you just have to type "PrintCode" in the command lane (F1) and you will be able to print it out.

    Saturday, January 06, 2018 3:33 PM