Get your code reviewed with Visual Studio
TFS 2017 | TFS 2015 | TFS 2013
Visual Studio 2019 | Visual Studio 2017 | Visual Studio 2015 | Visual Studio 2013
Before you check in your code, you can use Visual Studio to ask someone else from your team to review it. Your request will show up in his Team Explorer, in the my work page.
To ask for a code review, make sure you have shared your code in TFVC.
(Are you using Git to share your code? If so, then use a pull request.)
Request a code review
Jamal has changed the border color in the Hello World app, and he asks Johnnie to review the change.
Before he checks in the change, Jamal goes to the my work page.
He requests a review.
He submits a request to Johnnie.
Jamal suspends his work on Hello World so that he can work on something else while he waits to hear back from Johnnie.
Respond to the code review request
Johnnie will see the code review request in the Team Explorer, look at the changes, and give Jamal his feedback.
Johnnie opens the my work page.
He sees Jamal's code review request.
You can get email alerts for code reviews, too. If you aren't getting them, you can sign up in the Team Explorer settings page.
Johnnie opens the code review request.
He accepts the review.
He opens the file that Jamal changed.
Johnnie sees that Jamal changed the color to #ddd. He selects the code in the difference window and adds a comment (Keyboard: Ctrl + Shift + K).
He suggests a different color instead and sends the comment to Jamal.
Update the code based on the review feedback
When Jamal gets a response from Johnnie, he resumes the work on Hello World.
His changes are unshelved and the windows he had opened are restored, so he can incorporate the review feedback.