Visual Studio: Export C# Code into a PDF file and keep the formatting + colors?

后端 未结 4 1481
执念已碎
执念已碎 2021-01-12 04:38

I was wondering if there is any export function inside Visual Studio Ultimate (2010) to get a chosen tab (by default a single class) o

相关标签:
4条回答
  • 2021-01-12 05:08

    You can use VscodePrint extension. Google 'VScodePrint' and try it. You can print or exports to PDF any part of a Solution.

    0 讨论(0)
  • 2021-01-12 05:19

    This is a job for CutePDF. Just install it, and go to file->print in Visual Studio.

    0 讨论(0)
  • 2021-01-12 05:27

    I wanted to do this myself so google brought me here. Then I had a mini brainwave and remembered "Microsoft Print to PDF" which is built in as an option in the print menu. I tried it and it worked!

    So just go File->Print, then choose Microsoft Print to PDF as the printer, then choose where to save your printout.

    (P.s. my code is awful. This file is from an old app I wrote lazily and intend to overhaul)

    0 讨论(0)
  • 2021-01-12 05:27

    First, you need a PDF printer tool like:

    • Foxit Reader (PDF Reader and printer)
    • CutePDF (PDF printer only)

    I'm using Visual Studio 2013 but colors were not printing.

    If you are using Visual Studio 2010-2012, you might want to check the following extension from Microsoft: Color Printing

    If you are using Visual Studio 2013, you can check this extension from Microsoft which includes color printing: Productivity Power Tools 2013

    If you are using Visual Studio 2015, you can check this extension from Microsoft which includes color printing: Productivity Power Tools 2015

    0 讨论(0)
提交回复
热议问题