在Visual Studio中启用行号显示 [英] Enable the display of line numbers in Visual Studio
问题描述
为什么Visual Studio无法在源文件中显示行号?有什么方法可以启用它,或为其启用插件吗?我知道程序中的代码行数无关紧要,但是有时很高兴知道程序有多长时间或要参考的特定行数.
Why doesn't Visual Studio have any way of showing line numbers in a source file? Is there any way to enable it, or a plugin for it? I know that the number of lines of code in a program doesn't matter, but sometimes it is nice to know how long a program is or the number of a particular line for reference.
尽管我尝试过,但似乎找不到启用行编号的方法,这让我感到惊讶.
Though I tried, I can't seem to find a way to enable line numbering and I find that surprising.
这是Visual Studio 2010 Ultimate. (如果您已经阅读了较早的问题,那么到目前为止,我一直在使用2008 Express.)
This is Visual Studio 2010 Ultimate. (If you have read my older questions, I've been using 2008 Express until now.)
推荐答案
Visual Studio具有行号:
Visual Studio has line numbering:
工具->选项->文本编辑器->所有语言->选中行号"复选框.
Tools -> Options -> Text Editor -> All Languages -> check the "Line numbers" checkbox.
这篇关于在Visual Studio中启用行号显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!