Visual Studio 2008 Tip 26 - 如何在编辑器中显示行号?

原文链接:How to show line numbers in the editor?

Showing Line Numbers in the Editor

操作方法

打开菜单: Tools - Options - Text Editor - All Languages - General, 选中 Line numbers 可为所有文件显示行号。 

如果你只想显示(或不显示)特定类型文件的行号,可以覆盖上面所作的全局设置: Tools - Options - Text Editor - <语言类型> - General