Visual Studio: Show line number
In Visual Studio you can display the line numbers in the editor area. How - we explain to you in this practical tip and in our picture gallery.
Show line number in Visual Studio
Regardless of whether Visual Studio, Visual C #, visual c ++, line numbers and line breaks are deactivated in the standard setting. The menu navigation is identical and you can make settings as follows:
- Call up the "Tools"> "Options" tab in the menu bar.
- Check the "Show all settings" checkbox at the bottom of the menu.
- Now navigate to "Text Editor"> "All Languages".
- On the right side, you can now check the "Line number" box in the "Display" area.
- If you want, you can also activate the automatic "line break" in the "Settings" area.
- Finally confirm by clicking on "OK". In our picture gallery we show all steps again in detail.
Tips for getting started in programming, learning to program online and creating your first c program can be found in other CHIP practical tips. This description refers to Visual Studio 10 but the line numbers can also be displayed in this way in older versions.