I’ve been back code in C# and using Visual Studio, yet I always forget how to show line numbers in Visual Studio code editor. Assuming you have the same problem or just fresh install of Visual Studio and still wondering how to do it, here’s how to display line numbers in your code editor :

First Click Tools (1) in the menu bar then Options , once Options dialog opened expand Text Editor and click All Language (2) , Check the Line Numbers check box under Display (3) and then click OK (4), happy coding 😉 .

Subscribe via twitter :