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
You should edit "settings.json". In that add, "editor.lineNumbers":"on",
. You can check comments for various options you have.
In Visual Studio Code - 2017, you can also directly go to a given line number. There are following three ways to do that.
Visual Studio has line numbering:
Tools -> Options -> Text Editor -> All Languages -> check the "Line numbers" checkbox.
Are you talking about seeing the line numbers or knowing the total number of lines in a project? Here is the 1st one
In Visual Studio 2010 Express, there is an option called "Show all Settings". Located at "Tools > Options", window.
If this option is not checked, the line number option will not be available. Make sure this option is checked like shown below. This will make lot of additional settings visible in the tree view to the left.
Now this will make the option "Tools > Options > Text Editor > C# > General > Line Editor" available. Check the "Line Number" option to make line numbers visible on Visual Studio 2010 Express.
Options -> Text Editor -> All Languages -> Line Number checkbox
Type 'line numbers' into the Quick Launch textbox (top right VS 2015), and it'll take you right where you need to be (tick Line Numbers checkbox).