Note: To go to a line in the file, you use ctrl + g, then type a line number. Alternatively, you can also open the go-to file menu with command + p first. Then type : . Then type your line number.
On vscode, press Ctrl-Shift-P, and type user settings . Click on Preferences: Open User settings . in the settings search bar, type in line numbers . Then, on the Editor: Line Numbers: Controls the display of line numbers. , switch that to on if it isn't already.
Add line numbers to a section or to multiple sectionsOn the Layout tab, in the Page Setup group, click Line Numbers. Click Line Numbering Options, and then click the Layout tab. In the Apply to list, click Selected sections. Click Line Numbers.
Visual Studio has line numbering:
Tools -> Options -> Text Editor -> All Languages -> check the "Line numbers" checkbox.
As of Visual Studio 2015, you can find the option under:
Tools-> Options -> Text Editor -> All Languages-> General -> Line Numbers
Or simply go to tools -> options
and type on the search bar: "Numbers".
Tools -> Options -> Show All Settings -> Text Editor -> All Languages -> Line Numbers
In Visual Studio 2013 & 2015 :
Tools -> Options -> Text Editor -> All Languages -> check Line Numbers
It's not enabled by default but you can enable it by going to:
settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With