{"id":250702,"date":"2024-09-23T03:00:47","date_gmt":"2024-09-23T10:00:47","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=250702"},"modified":"2024-09-23T09:13:36","modified_gmt":"2024-09-23T16:13:36","slug":"level-up-your-collaborations-with-the-pull-request-experience-in-visual-studio","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/level-up-your-collaborations-with-the-pull-request-experience-in-visual-studio\/","title":{"rendered":"Level up your collaborations with the pull request experience in Visual Studio"},"content":{"rendered":"<p>One of our main goals is to help you and your team collaborate more effectively and efficiently on your software projects. That&#8217;s why we are constantly improving our Version Control features, especially the ones related to the pull request workflow. Starting in Visual Studio version 17.11, you can enjoy a smoother and smarter pull request experience, from creating to reviewing to merging. You can link your Azure DevOps work items, and in both Azure DevOps and GitHub you can create draft PRs and use default templates. You can even get AI assistance to write your pull request descriptions. Plus, you can view and respond to your pull request comments right in the editor, without leaving Visual Studio. Sounds awesome, right? Download the latest Visual Studio release and see for yourself!<\/p>\n<p style=\"margin: 0in; font-family: Calibri; font-size: 11.0pt;\"><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\" https:\/\/visualstudio.microsoft.com\/downloads\/\" target=\"_blank\">Download Visual Studio 17.11<\/a><\/div><\/p>\n<h2>Create <em>all <\/em>your pull requests in Visual Studio<\/h2>\n<p>We were so excited by the enthusiastic reception to the new <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/create-a-pull-request-in-visual-studio\/\">Create a Pull Request<\/a> flow and the <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/create-a-pull-request\/\">subsequent updates<\/a>. This feature had hundreds of survey responses, and we read every single comment. We\u2019ve delivered on the top concerns, enabling Azure DevOps work item linking, default Pull Request templates, and draft PRs.<\/p>\n<ul>\n<li>The Azure DevOps \u201cNew Pull Request\u201d window now has a section where you can add your linked work items. These items are reflected in the web as being linked \u2013 avoiding the context switch to the web and fulfilling many branch policies that require a linked ticket.<\/li>\n<li>Default pull request templates will auto-populate in the description box if there\u2019s one available. Learn more about how to add default templates in your repository in the <a href=\"https:\/\/docs.github.com\/en\/communities\/using-templates-to-encourage-useful-issues-and-pull-requests\/creating-a-pull-request-template-for-your-repository\">GitHub documentation<\/a> and <a href=\"https:\/\/learn.microsoft.com\/azure\/devops\/repos\/git\/pull-request-templates?view=azure-devops#default-pull-request-templates\">Azure DevOps documentation.<\/a><\/li>\n<li>Create your pull request as a draft using the drop down menu on the \u201cCreate\u201d button. This lets your colleagues know it\u2019s a work in progress.<\/li>\n<li>Learn more about the GitHub Copilot generated pull request descriptions in <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/let-github-copilot-draft-of-your-pull-request-description\/\">our previous blog<\/a>.<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250703\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-1.png\" alt=\"Image showing a draft of a pull request description for ADO and GitHub\" width=\"504\" height=\"284\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-1.png 504w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-1-300x169.png 300w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/p>\n<h2>View your pull request comments in the editor<\/h2>\n<p>Mapping between your code editor and your browser to view pull request comments can be a hassle. We&#8217;ve added your GitHub and Azure DevOps pull request comments directly in your working file. You can now stay in your context, make necessary code changes, and interact with your colleagues&#8217; suggestions without switching contexts to the browser.<\/p>\n<p>Enable the feature flag, \u201cPull Request Comments\u201d, then checkout any branch with an active pull request branch and click on \u201cShow comments in file\u201d. You can also click on the \u201cPR #\u201d entry point from the Git Changes window or from the Git top level menu with Git &gt; GitHub or Azure DevOps &gt; Show comments in File.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-250704\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-2.png\" alt=\"Image of Git Changes screen\" width=\"900\" height=\"506\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-2.png 900w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-2-300x169.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/09\/word-image-250702-2-768x432.png 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>You can navigate between files in the pull request and comments in the files using the toolbar. Leverage the following keyboard shortcuts:<\/p>\n<table>\n<tbody>\n<tr>\n<td>Go to the previous file in the pull request<\/td>\n<td>Ctrl+Shift+Alt+F6<\/td>\n<\/tr>\n<tr>\n<td>Go to the next file in the pull request<\/td>\n<td>Ctrl+Alt+F6<\/td>\n<\/tr>\n<tr>\n<td>Go to the previous comment<\/td>\n<td>Ctrl+Shift+Alt+F8<\/td>\n<\/tr>\n<tr>\n<td>Go to the next comment<\/td>\n<td>Ctrl+Alt+F8<\/td>\n<\/tr>\n<tr>\n<td>Move focus back to the code from a comment<\/td>\n<td>Esc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>In the last preview we included better support for @ mentions and work item references for your comments. We also improved the UI with the addition of avatars, other visual tweaks to improve accessibility, and we enabled better syncing with the server.<\/p>\n<h2>Contribute to what\u2019s next<\/h2>\n<p>A smoother pull request experience helps your collaborations thrive! Be sure to try out the latest features in Visual Studio 17.11 GA and share your feedback in the following surveys:<\/p>\n<ul>\n<li><a href=\"https:\/\/aka.ms\/CreatePR\">Create a Pull Request Improvements<\/a><\/li>\n<li><a href=\"https:\/\/aka.ms\/ReviewPR\">View Pull Request Comments<\/a><\/li>\n<\/ul>\n<p>We plan to continue improving the pull request experience based on your feedback, so let us know what\u2019s missing and what you\u2019re looking forward to! We&#8217;ve got a lot of functionality on the roadmap, including adding new pull request comments and seeing the comments in the diff view between your source and target.<\/p>\n<p>We appreciate the time you\u2019ve spent reporting issues\/suggestions and hope you continue to give us feedback when using Visual Studio on what you like and what we can improve. Your feedback is critical to help us make Visual Studio the best tool it can be! You can share feedback with us via\u00a0<a href=\"https:\/\/developercommunity.visualstudio.com\/home%22%20\/t%20%22_blank\">Developer Community<\/a>: report any bugs or issues via\u00a0<a href=\"https:\/\/learn.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2022\">report a problem<\/a>\u00a0and\u00a0<a href=\"https:\/\/developercommunity.microsoft.com\/VisualStudio\/suggest\">share your suggestions<\/a>\u00a0for new features or improvements to existing ones.<\/p>\n<p>Stay connected with the Visual Studio team by following us on <a href=\"https:\/\/www.youtube.com\/@visualstudio\">YouTube<\/a>, <a href=\"https:\/\/twitter.com\/VisualStudio\">Twitter<\/a>, <a href=\"https:\/\/www.linkedin.com\/showcase\/microsoft-visual-studio\/\">LinkedIn<\/a>, <a href=\"https:\/\/www.twitch.tv\/visualstudio\">Twitch<\/a> and on <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/?view=vs-2022\">Microsoft Learn<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of our main goals is to help you and your team collaborate more effectively and efficiently on your software projects. That&#8217;s why we are constantly improving our Version Control features, especially the ones related to the pull request workflow. Starting in Visual Studio version 17.11, you can enjoy a smoother and smarter pull request [&hellip;]<\/p>\n","protected":false},"author":98326,"featured_media":250703,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6961],"tags":[6758],"class_list":["post-250702","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","tag-git-integration"],"acf":[],"blog_post_summary":"<p>One of our main goals is to help you and your team collaborate more effectively and efficiently on your software projects. That&#8217;s why we are constantly improving our Version Control features, especially the ones related to the pull request workflow. Starting in Visual Studio version 17.11, you can enjoy a smoother and smarter pull request [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/250702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/98326"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=250702"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/250702\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/250703"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=250702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=250702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=250702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}