Enable the display of line numbers in Visual Studio

前端 未结 15 1060
暗喜
暗喜 2020-12-23 15:38

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

相关标签:
15条回答
  • 2020-12-23 16:21

    In Visual Studio 2013 & 2015 :

    Tools -> Options -> Text Editor -> All Languages -> check Line Numbers

    0 讨论(0)
  • 2020-12-23 16:22

    Line numbers are not on by default. To turn on line numbers just go to Tools -> Options -> Text Editor -> All Languages -> General -> Display and check Line numbers:

    http://blogs.msdn.com/blogfiles/zainnab/WindowsLiveWriter/TurnonLineNumbers_A5E7/image_thumb.png

    0 讨论(0)
  • 2020-12-23 16:24

    For MS Visual Studio 2015 type "Text" in Quick Launch (Ctrl+Q) of top right corner. 1) quicklaunch

    2) In the list select Text Editor->All Languages->General select_allLanguages

    3) Now check on "Line Numbers" and click OK to get the line numbers.

    Finally we get the line number in text editor.

    0 讨论(0)
提交回复
热议问题