Visual Studio:将C#代码导出到PDF文件中,并保留格式+颜色吗? [英] Visual Studio: Export C# Code into a PDF file and keep the formatting + colors?

查看:575
本文介绍了Visual Studio:将C#代码导出到PDF文件中,并保留格式+颜色吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道Visual Studio Ultimate (2010)内是否有任何导出功能,以便将选定的tab(默认为单个class)的C# code导出到PDF文件中,因此您可以共享该PDF文件并向某人显示代码,以及Visual Studio的格式和颜色?我正在发送带有应用程序示例代码的PDF,这就是我提出这个问题的方式.

I was wondering if there is any export function inside Visual Studio Ultimate (2010) to get a chosen tab (by default a single class) of C# code exported into a PDF file, so you can share that PDF file and show someone the code, with the formatting and colors of Visual Studio? I'm sending the PDF with sample code for an application, that's how I came to this question.

我知道我可以将代码复制到文本框中的Word中,这样可以正常工作并保持颜色+格式.我只是想在Visual Studio中也有一个选项吗?不重要,只想知道. ;-)

I know that I could copy the code into Word in a textbox, that works fine and keeps colors + formatting. I am just interested if there is an option in Visual Studio too? It's not important, just want to know. ;-)

推荐答案

这是 CutePDF 的工作.只需安装它,然后转到文件->在Visual Studio中打印.

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

这篇关于Visual Studio:将C#代码导出到PDF文件中,并保留格式+颜色吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆