Printing Code

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.

Colors and Fonts

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).

Image

FIGURE 6.27 The Fonts and Colors Options dialog box.

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.

Image

FIGURE 6.28 Code printout.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset