highliting current line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, when jumping to a definition of a function in VB.Net 2005, Visual Studio
does not scroll to place the destination line in the center of the window. So
it could be anywhere. On my screen I can see nearly 100 lines at once and it
is annoying to have to search for where the text cursor is.

Is there any what to highlight the current line (the line in which the text
cursor is) ?
Or to put a frame around it?

Any hints are very welcome.
 
I don't know of any, but the line number will appear at the bottom of the
IDE. That should help.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
 
I don't know of any, but the line number will appear at the bottom of the
IDE. That should help.

Thanks for the feedback, but unfortunately that does not help, as I do not
know where in the page that line is. (At least as long as the top line
visible is not the first line of the document)
 
Hi Ingmar,

Using Kevin's suggestion you could enable line numbers in Tools --> Options.

Maybe a better architecture is in order? You can reduce the number of lines per file by encapsulating your code into objects that
are declared in separate files or you can use partial classes as a quick fix.
 
Nice ideas as well, but not practical either.

A quicker solution (what I now do often) is to hit shift+arrow up and it
selects the text from the current cursor to the next line up. That selection
has a blue background and is easy to see. And faster than any looking up a
line number on the bottom and then finding it on the side.

The better architecture is in order for Visual Studio ïŠ
Sickedit for example draws a box around the current line. That is an
excellent solution, but something that must be integrated into the editor.
 
Back
Top