Visual Studio Annotate line number change in view

I am using Visual Studio 2010 with VB.NET in project 4.0 with Team Foundation Server. When I comment, I not only do not see line numbers (which, apparently, is an uncommitted error 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 the annotation also advances the 10-15 lines screen, making it difficult to find the code that I was actually trying to annotate.

Has anyone come across this before? Do you have a chance to fix a mistake? Even knowing that I am not alone would be good.

+6
source share
2 answers

I came across this too, but keep in mind the following:

  • If you comment from Solution Explorer, it will launch you at the top of the file.
  • If you annotate from a file using the context menu, it will start from where your cursor is when you go to the annotation.
  • If you annotate from a file using File → Source Control → Annotate, it will start again from the top of the file.

To find the specific code that I want to annotate, I do one of two things:

  • Annotate using the context menu in the line of interest. Close the file when done, and repeat if necessary.
  • Liberal use of Ctrl+F

Hopefully the VS team will solve this next time.

+7
source

Later to the participant for VS 2010, but according to the documentation (and it really works) you can also hover over annotations and list the line numbers that contain annotations.

https://msdn.microsoft.com/en-us/library/bb385979(v=vs.100).aspx

0
source

Source: https://habr.com/ru/post/906679/


All Articles