How to view code review comments in Visual Studio 2013

4.6k views Asked by At

No idea where the code review comments can be seen, but I need to see them.

I am not the person who "requested" the code review, nor am I the person who has provided comments and completed the code review. I am the "tech lead" for the project, however, and want to review what other developers are saying about the code.

I can see in multiple places that the code reviewer "Finished (with comments)" but I can see nowhere to view the comments. I have spent most of my time looking in the "Code Review" section of Visual Studio 2013 but can see no way to find the comments.

Anyone know how to see the comments?? I don't care if it's in VS or on the TFS site, or even in the email that alerts me that the code has been reviewed... but I can't find comments anywhere.

2

There are 2 answers

0
Cee McSharpface On

I found one solution which is still awkward, but it works in Visual Studio (using the Team Explorer sidebar) and no need to switch between VS and the TFS web frontend:

  • bring up the code review request
  • copy the shelveset name from the "Associated Context" field
  • in Team Explorer, navigate to Pending Changes > Actions > Find Shelveset
  • paste the shelveset name and start the search
  • double-click the shelveset
  • scroll down to the "Related Work Items" section, and double click the associated code review request
  • now you get the same view that the requester would see, including overall and file comments

Prerequisite: the requester may not have chosen to delete the shelveset when they proceeded from their completed review, otherwise the comments are no longer accessible from the frontend).

For a solution outside of Visual Studio, look into this:

1
Brahmaprasad R On

The reviewers can use "Add Overall Comments" option to comment. Or even in TFS web access, comments can be added inline, which should be visible to all other reviewers. Hope this helps.