Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Line numbers in .cs files but not in .aspx files within VS

I just installed Visual Studio 2012 Professional today. For some reason, I don't have line numbers in my view files, but I do have them in my .cs files. The option to turn line numbers on is selected in tools->editors->whatever.

I right clicked the project (asp.net Web Site), went to property pages, and looked at the debug output options, and noticed that it was being sent to a weird directory. I changed it to the bin folder of my current application, cleared temporary asp.net files, restarted VS2012, tried again, and no luck. Still the same symptoms.

Any ideas as to what could be causing this?

Edit: I just noticed after changing the debug output location that now, when I open up a .aspx file, VS freezes and becomes totally unresponsive.

like image 596
Phillip Schmidt Avatar asked Nov 06 '12 19:11

Phillip Schmidt


1 Answers

Each text editor has its own settings pane.

Are you changing the HTML editor settings? Line numbers for ASPX files are enabled in the Tools\Options\Text Editor\Html\General\Line Numbers setting.

Line Number Settings

To enable settings for every editor window go to

Tools\Options\Text Editor\All Languages\General\Line Numbers.

like image 96
Walt Ritscher Avatar answered Sep 22 '22 06:09

Walt Ritscher