Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable the display of line numbers in Visual Studio

People also ask

How do I show line numbers in Visual Studio code?

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.

How do I toggle line numbers in VSCode?

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.

How do I insert line numbers?

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

Visual Studio 2013 Line Numbers Option Menu


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 enter image description here


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