Skip to content

Commit ad47e0f

Browse files
authored
Merge pull request #14345 from ghogen/pull-request-update
Pull request comments Dev18 updates
2 parents 0176834 + ea789ea commit ad47e0f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,22 @@ You can toggle your like status on a comment by clicking on the icon, or by clic
9898

9999
The ability to add comments to a pull request is limited for some Git providers. For example, with GitHub as the provider, you can only add comments on lines within 3 lines of a change, but with the Azure DevOps provider, you can add comments at any line of a file involved in the pull request. In any case, you can only add comments on files that are included in the pull request.
100100

101+
:::moniker range="visualstudio"
102+
103+
### View comments in diff view
104+
105+
You can view comments in the diff view as well as the file view. In the diff view, you can see comments alongside the original and updated code. This makes it easier to see exactly what was changed and why. You can also edit the working file directly in this view.
106+
107+
:::image type="content" source="./media/visualstudio/pr-comment-in-diff.png" alt-text="Screenshot a PR comment in the diff view." lightbox="./media/visualstudio/pr-comment-in-diff.png" :::
108+
109+
### Markdown formatting in comments
110+
111+
In file view or diff view, comments render using Markdown formatting.
112+
113+
:::image type="content" source="./media/visualstudio/pr-comment-markdown.png" alt-text="Screenshot a PR comment that shows Markdown formatting." :::
114+
115+
:::moniker-end
116+
101117
### Use the keyboard
102118

103119
You can navigate across files and individual comments using the icons in the toolbar, or use the following keyboard shortcuts:
778 KB
Loading
83.6 KB
Loading

0 commit comments

Comments
 (0)