简体   繁体   English

如何在Visual Studio 2015中不打印折叠的代码区域

[英]How do I not print collapsed code regions in Visual Studio 2015

I'm sure this is a foolish question, but I can't seem to find an answer. 我敢肯定这是一个愚蠢的问题,但我似乎找不到答案。 I'm required to print out my code for a program, but I want to not print regions that are collapsed, as this would save about a dozen pages of paper per print. 我需要打印出我的程序代码,但是我不想打印出折叠的区域,因为这样每次打印可以节省大约十二页的纸张。 Where is the setting in Visual Studio 2015 to do this, if there is one? 如果有的话,Visual Studio 2015中的设置在哪里? I am working in C#. 我正在使用C#。

Cut/Paste your collapsed regions into functions and put those functions into a different file. 将折叠的区域剪切/粘贴到函数中,然后将这些函数放入另一个文件中。 Its easy "low lying fruit" in terms of refactoring and making you code so much easier to read. 在重构方面,它很容易“撒谎”,使您的代码更易于阅读。

Regions are like totally gross 地区就像是总的

Prior to VS2015, the option to hide collapsed regions while printing was available on the Print dialog (as discussed here ). 此前VS2015,隐藏折叠的区域,而印刷是可在打印对话框(如讨论的选项这里 )。 Unfortunately, however, that feature has been removed (as noted in the "Known Issues" section of this release ). 但是,不幸的是,该功能已被删除(如本发行版的“已知问题”部分所述)。 Please consider voting to restore this capability on this UserVoice Request . 请考虑投票以恢复此UserVoice请求上的此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM