Share via


View line numbers in XML documents with Visual Studio

Question

Thursday, January 8, 2009 2:17 PM | 1 vote

Hi everybody!

Does anyone know if there is a way to view the line numbers in a XML document in the same way you can in any other kind of document.
I want to have the line numbers visible on the left side inside a XML document, the same as it is in, for an example, an asp or txt document.

I have line numbers turned on in my tool-options-general settings, but the line numbers are still not visible in the XML document. Of course I can go to a line number by Ctrl G and also see wich line number I standing on, but I would like to see all the line numbers on the whole page.

Is this possible?

Thanks in advance for any help.  

All replies (2)

Monday, January 12, 2009 2:36 AM âś…Answered | 2 votes

Hi Pelter,

I have Visual Studio 2008 Team Suite and Visual Studio 2005 Professional Edition on my PC. I could view the line numbers in a XML document by using the step:
Tool - Options - Text Editor - XML - General - Click "Line Numbers"

However, you could not view the line numbers in a XML document in any express edition.

Hope that helps.

Thanks


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Thursday, January 15, 2009 1:11 PM

Great! Thank you! I've been looking for that for a long time.

:-D