Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup Visual Studio 2005 to print line numbers

How can I get line numbers to print in Visual Studio 2005 when printing code listings?

like image 470
Christopher Mahan Avatar asked Aug 06 '08 18:08

Christopher Mahan


People also ask

How do I print line numbers in Visual Studio?

Here's how. On the menu bar, choose Tools > Options. Expand the Text Editor node, and then select either the language you're using or All Languages to turn on line numbers in all supported programming languages.

How do I show line numbers in Visual Studio code?

Note: To go to a line in the file, you use ctrl + g, then type a line number. Alternatively, you can also open the go-to file menu with command + p first. Then type : . Then type your line number.

Can I print code from Visual Studio?

Simply install the extension within VS Code or by going to the Visual Studio Marketplace. Next restart VS Code. Open the code you'd like to print, press F1 and type PrintCode and press enter.


1 Answers

Isn't there an option in the Print Dialog?

Edit: There is. Go to File => Print, and then in the bottom left there is "Print what" and then "Include line Numbers"

like image 64
Michael Stum Avatar answered Oct 21 '22 07:10

Michael Stum