Thursday, January 21, 2010

Visual Studio Line Numbers

Ever wondered why errors in Visual Studio show you line numbers where it occured yet upon checking back on your code you found none? That is because by default, on installation of Visual Studio, line numbers are disabled. To enable it simply go to menu then tools then options.





Once the options window pop up, expand on Text Editor and select the language you want to show line numbers and simply click the checkbox "Line numbers".





You can do this to other languages you want, better if you do it on all.





That's it, the only thing I've been wondering is why Microsoft opted to disable it by default when we all know that line numbers are important for debugging..




-k

No comments:

Post a Comment