Reputation: 4772
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
Upvotes: 2
Views: 293
Reputation: 52798
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
Upvotes: 9
Reputation: 2298
As DaveShaw says. Right-click on the line you're interested in, select the last option 'Source Control' and choose 'Annotate'.
This will give you a list of who made edits and when in the file, down the left-hand side of the code-editor pane.
Upvotes: 1