we use TFS controlled source. Are there a fast way to determine the history of a function I’m currently in – like anwsering “who edited this function?” or “who edited this line of code?”.
I know, that I can open source control for the current file and browse the history to find a changeset, where the lines of code / the function I’m interested in were edited.
But I’m looking for an easier way … may be any addons for Visual Studio 2010?
Thanks, Konrad
You can use the annotate option.
This is available from most of the Source Control options in TFS. I normally invoke it from the Source Code context menu of the Code Editor windows, but it’s also in:
The Annotation will show which changeset is responsible for each line/block of code. You can see which user checked in a changeset. Sometimes you have to filter the changeset range if the file has been merged by an innocent person.
Annotated File