Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Annotate changing line number in view

I'm using Visual Studio 2010 with VB.NET, in a 4.0 project, with Team Foundation Server. When I annotate, not only do I not see line numbers (which is apparently an unfixed bug with VS 2010 - http://connect.microsoft.com/VisualStudio/feedback/details/553557/when-invoking-tfs-annotate-in-visual-studio-there-are-no-line-numbers-shown) but annotate also advances the screen 10-15 lines, which makes it difficult to find the code I was actually attempting to Annotate.

Has anyone run into this before? Any chance you've figured out a fix for it? Even knowing I'm not alone would be nice.

like image 663
Drew Miller Avatar asked Jan 23 '12 15:01

Drew Miller


1 Answers

I've run into this also, but keep in mind the following:

  1. If you Annotate from Solution Explorer, it'll start you at the top of the file.
  2. If you Annotate from the file with the right-click menu, it'll start from where your cursor is located when you go to annotate.
  3. If you Annotate from the file with the File -> Source Control -> Annotate, it'll start from the top of the file again.

To find particular code that I want annotated I do one of two things:

  1. Annotate with the right-click menu on the line of interest. Close the file when I'm done, and repeat as necessary.
  2. Liberal use of Ctrl+F

Hopefully, the VS team will fix this next time around.

like image 171
Bob2Chiv Avatar answered Nov 13 '22 11:11

Bob2Chiv