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. Two Visual Studio-specific options bear mentioning here. The Print What section in this dialog box controls whether line numbers are produced in the printout and whether collapsed regions are included in the printed content.
By default, the font colors and markup that you see in the text editor window are sent to the printer as is (assuming that you are printing to a color printer). If you so desire, you can tweak all these settings from the Environment, Fonts and Colors page in the Options dialog box (see Figure 6.27).
This is the same dialog box used to control font and color settings for many of the IDE’s constituent parts. You access the printer settings by selecting Printer in the Show Settings For drop-down at the top of the dialog box.
Figure 6.28 provides a snapshot of output produced by printing a code file.