Enable the display of line numbers in Visual Studio

前端 未结 15 1059
暗喜
暗喜 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:15

    In VS 2010:

    Tools > Settings > Expert Settings

    Then:

    Tools > Options > Show all settings > Text editor > C# > General > Check Line Numbers (checkbox)

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

    As of Visual Studio 2015, you can find the option under:

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

    Visual Studio 2013 Line Numbers Option Menu


    Or simply go to tools -> options and type on the search bar: "Numbers".

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

    It's not enabled by default but you can enable it by going to:

    1. Click Tools
    2. Options
    3. Text Editor (expand)
    4. All Languages
    5. Line Numbers (Checkbox)
    6. Click Ok

    settings

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

    Visual studio 2015 enterprice

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

    https://msdn.microsoft.com/en-us/library/ms165340.aspx

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

    For me, line numbers wouldn't appear in the editor until I added the option under both the "all languages" pane, and the language I was working under (C# etc)... screen capture showing editor options

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

    Tools -> Options -> Show All Settings -> Text Editor -> All Languages -> Line Numbers

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