Sign up for free

Choose your product:

Get your code reviewed

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 "My Work". We'll follow Peter's code review request here.

You can follow along if you've connected to TFS and uploaded some code.

 

Request a code review

Peter has just added the line that prints "Hello, World" to his console app, and he asks Adam to review the change.

  1. Before he checks in the change, Peter requests a code review.

    Request code review link from the team explorer home page
  2. He selects Adam as the reviewer, titles his changeset "Hello World output", adds a note, and then submits the code review request.

    Submit request button on the filled out new code review page in the team explorer
  3. Peter suspends his work on Hello World so that he can work on something else while he waits to hear back from Adam.

    Suspend link in the my work page of the team explorer

 

Respond to the code review request

Adam will see the code review request in the team explorer, look at the changes, and give Peter his feedback.

  1. Adam opens the my work page.

    My work link in the team explorer home page
  2. He sees Peter's code review request.

    The code review request in the my work page

    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.

    Project alerts link in the settings page of the team explorer
  3. Adam opens the code review request.

    Context menu for the code review in the my work page
  4. He opens the file that Peter changed.

    The file link (Program.cs) in the code review page
  5. Adam sees that Peter added a line of code to write "Hello, World". He adds a comment right from the difference window.

    Line of code selected in the differences window, add comment in the context menu
  6. He suggests WriteLine() instead and sends the comment to Peter.

    Send comments button in the code review page with the comment 'Use WriteLine()'

 

Update the code review based on the code review feedback

  1. When Peter gets a response from Adam, he resumes the work on Hello World.

    Resume link under in the my work page of the team explorer
  2. His changes are unshelved and the windows he had opened are restored, so he can take up where he left off.

    Work environment restored after resuming work

Try this next

Sign up for free