Skip to content

Commit 813cf40

Browse files
ghogendenrea
andauthored
Add section for PR comments (#12879)
* Add section for PR comments * Add screenshot of links * Changes from feedback * Incorporate feedback * Use a different image * Change instructions about feature flag * Acrolinx fix --------- Co-authored-by: Dennis Rea <[email protected]>
1 parent 025fdf9 commit 813cf40

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

docs/version-control/git-create-pull-request.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,27 @@ To create a pull request, follow these steps:
5757

5858
1. Once you’ve clicked **Create** on your pull request, other developers can review your changes and provide feedback.
5959

60+
## View pull request comments in the editor
61+
62+
As of Visual Studio 17.11, you can view comments and suggestions from reviewers without switching contexts to the browser.
63+
64+
![Screenshot showing PR comments.](./media/vs-2022/git-pull-request-comments.png)
65+
66+
To enable this feature, open **Tools** > **Options** > **Preview features** and make sure that **Pull Request Comments** is selected.
67+
68+
To view the comments for a pull request, check out any branch with an active pull request branch and select **Show comments in files** from the infobar. You can also select the PR number in the **Git Changes** window or from the Git top level menu with **Git** > **GitHub** or **Azure DevOps** > **Show comments in files**.
69+
70+
![Screenshot showing link to view comments in Git Changes window.](./media/vs-2022/git-pull-request-link-and-PR-number.png)
71+
72+
You can navigate across files and individual comments using the icons in the toolbar, or use the following keyboard shortcuts:
73+
74+
| Action | Keyboard shortcut |
75+
| - | - |
76+
| Go to the previous file in the pull request | **Ctrl**+**Shift**+**Alt**+**F6** |
77+
| Go to the next file in the pull request | **Ctrl**+**Alt**+**F6** |
78+
| Go to the previous comment | **Ctrl**+**Shift**+**Alt**+**F8** |
79+
| Go to the next comment | **Ctrl**+**Alt**+**F8** |
80+
6081
## Next steps
6182

6283
To continue your journey, visit the [Fetch, pull, and sync in Visual Studio](git-fetch-pull-sync.md) page.
Loading
Loading
Loading

0 commit comments

Comments
 (0)