Action On My Work page, we see there are some file changes and an active task. Clicks the changes to go to Pending Changes, ...

Action
On My Work page, we see there are some file changes and an active task. Clicks the changes to go to Pending Changes, where we see details of files changed.

Dialogue
You've written some code.



Action
Output window shows the code has compiled with no errors.

Dialogue
The code compiles.



Action
Unit Test runner shows all tests run green.

Dialogue
Unit tests pass.



Action
Back in Pending Changes, right-click a file and choose Compare to see some of the new code in a diff view.

Dialogue
But you haven't checked in yet because you and your team aim to increase code quality using code reviews, a best practice adopted at many software companies. So you use Code Review, a new feature that allows you to request and perform code reviews without ever leaving Visual Studio.



Action
We are in the middle of a code review. Reviews some changes in a code review (diff window, etc.), adds to a block of code some kind of comment. Could be about an alternative, perhaps cleaner approach. Might be about failing to trap for some kind of error case. Etc.

Dialogue
You ask your teammate to take a quick look; just to make sure she agrees that the code you've written does the job and does it efficiently. She might also help you spot problems that are hard for you to see because you've been looking at your code for too long.



Action
In the middle of another code review, requestor adds some comments to their own review indicating a problematic area.

Dialogue
Or, perhaps you are blocked from completing a task because of some structural problems in some functions you depend on. You want to bring the owner of these interfaces into a discussion and solve the problem together.



Action
Pending Changes page with associated work item and changes to files shown. Pointer hovers over Request Review link.

Dialogue
Perhaps the code is isolated in your workspace, still waiting to be checked in….



Action
My Work page, right-click some suspended work and pointer hovers over Request Review command.

Dialogue
Or maybe you had to suspend the work earlier, and now you want someone else to take a look ….



Action
Open a Changeset from a resolved work item.  Show the changeset details page for an already-checked in chunk of code, hover mouse over Request Review.

Dialogue
Or, you might work on an Agile team that likes to check in early and often, so you conduct code reviews after the fact to already submitted changesets.



Action
On New Code Review page, we see several changes to review. Invites several participants. Uses Add Recent Reviewers link to add one or two. Types in one or two more.

Dialogue
Getting a second pair of eyes to look at new code is simply a good idea; it does not have to be a formal affair. And you can invite as many people as you like, regardless of whether they sit next door or on the other side of the globe.



Action
Make a few tweaks to the name automatically generated from the related work item.

Dialogue
Give the review a pithy title.



Action
Types a comment.

Dialogue
Tell your reviewers a little bit about what you are asking them to look at. Perhaps a brief explanation of the feature you implemented or how you fixed a bug. You might also mention where you want reviewers to focus their attention…areas that are of most concern to you.



Action
User selects several reviewers.  Also show the Add Recent Reviewers dropdown.

Dialogue
You can then choose who you want to put on the review.  You can also choose from a dropdown which will add a commonly-used set of reviewers with one click.



Action
Clicks Submit. Review is now in the Code Reviews  Requests section of the requestor.
Back to My Work page, we see changes and associated work item. Chooses Suspend.

Dialogue
If you are conducting a review of code in your workspace, after you request a code review, you may want to suspend the work until the review is completed.



Action
Crossfade to pan across automated email sent to team. Crossfade to My Work page of a reviewer.

Dialogue
An email goes out to your reviewers to request their attention to your review. The review also shows up in the My Work page for each reviewer.



Action
Code Review page. Clicks Decline link and types an explanation: "Busy week for me.  should be able to cover this for you."

Dialogue
Each reviewer can decline…



Action
Code Review page. Chooses Accept link.

Dialogue
…or accept the review.  



Action
Crossfade to code review request from POV of requestor. One of a few reviewers has accepted.

Dialogue
You and your team can immediately see whether this code is getting reviewed by the right person. 



Action
On Code Review page, opens a file, switches among the various diff modes.

Dialogue
As a reviewer, you choose the diff view that works best for you – you can choose from Side-by-Side, inline, left-only and right-only views.



Action
Selects code and adds block-level comment.

Dialogue
Select some code and write your comments.



Action
Enters a file-level comment.

Dialogue
You can also comment on each file…



Action
Enters an overall comment.

Dialogue
… or make an overall comment.



Action
Pan up from the comments entered and choose Send Comments.

Dialogue
You can send your comments… 



Action
Crossfade to Code Review page of another person, who replies to a comment and then choose Send Comments.

Dialogue
…and carry on a discussion during the review.



Action
Checks the boxes next to each of the files. Chooses Send & Finish link, and then chooses With Comments.

Dialogue
As each reviewer feels they have said all they have to say, they can check off each file, and finally, complete the review.



Action
On My Work page, in Code Reviews & Requests section, we see completed code review. Expands to show who accepted and who declined. 
Opens the code review, scans over comments. Chooses a block-level comment to open the file and highlight the code.

Dialogue
In your My Work page you can see the status of your code review and dive in to get all that valuable feedback.



We have seen Code Review, a new feature that will help you collaborate with your team to improve your code quality and get feedback all from inside the IDE.