{"id":234446,"date":"2021-09-14T08:00:41","date_gmt":"2021-09-14T15:00:41","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=234446"},"modified":"2021-09-14T12:55:35","modified_gmt":"2021-09-14T19:55:35","slug":"visual-studio-2022-preview-4-is-now-available","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2022-preview-4-is-now-available\/","title":{"rendered":"Visual Studio 2022 Preview 4 is now available!"},"content":{"rendered":"<p>We are excited to announce the fourth preview release of Visual Studio 2022! With Preview 4, there are more new capabilities on the themes of personal and team productivity, modern development, and constant innovation. In this blog, we&#8217;re highlighting a few of the new capabilities of Visual Studio 2022 Preview 4. We\u2019d love for you to download it, try it out, and join us in shaping the next major release of Visual Studio with your feedback.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/vs2022preview\" target=\"_blank\">Download Visual Studio 2022 Preview<\/a><\/div><\/p>\n<p style=\"text-align: center;\"><iframe title=\"YouTube video player\" src=\"\/\/www.youtube.com\/embed\/qme1vmJEQJc\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h2>Personal &amp; team productivity<\/h2>\n<p>A focus area for Visual Studio 2022 is improving the scalability and performance of Visual Studio. In previous blog posts, we&#8217;ve talked about how our move to 64bit has led to significant improvements in scalability. In Preview 4, we\u2019ve focused on improving the performance of several key features. For example, find in files is now as much as <strong>3x faster<\/strong> when searching large solutions such as <a href=\"https:\/\/github.com\/OrchardCMS\/OrchardCore\">Orchard Core<\/a>.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-234433\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/a-screenshot-of-a-computer-description-automatica.gif\" alt=\"Find in files performance comparison between VS2019 and VS2022 \" width=\"540\" height=\"301\" \/><\/p>\n<p>Other scenarios where we\u2019ve improved performance include C++ IntelliSense performance improvements with a ~12% speedup for semantic colorization, optimizations to symbol database processing, and an almost 2x speedup for expanding C++ items in the solution explorer. The performance team is planning a blog dedicated to performance improvements, so stay tuned.<\/p>\n<p><span style=\"font-size: 1rem;\">The Preview 4 release also has a number of improvements for debugging. From updates to the attach to process dialog where you can now select processes by using a window picker. From updates to the new external source feature, which make it easier to load symbols for libraries outside your project, to new features like dependent breakpoints, for configuring additional breakpoints after another breakpoint is first hit. This can make debugging code in common paths (like a game loop or a utility API) much easier as a breakpoint in those functions can be configured to enable only if the function is invoked from a specific part of your application.<\/span><\/p>\n<p><figure id=\"attachment_234437\" aria-labelledby=\"figcaption_attachment_234437\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-234437\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-15.png\" alt=\"Setting a dependent breakpoint\" width=\"540\" height=\"428\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-15.png 534w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-15-300x238.png 300w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><figcaption id=\"figcaption_attachment_234437\" class=\"wp-caption-text\">Setting a dependent breakpoint<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Developing modern apps<\/h2>\n<p>In Preview 4, there\u2019s a big update for the Blazor and Razor editors, addressing the issues in Preview 3 that we\u2019re reported to us \u2013 thank you! Along with fixes, there are new capabilities for hot reload in ASP.NET Core &#8211; including hot reload on file save and applying changes to CSS files live!<\/p>\n<p><figure id=\"attachment_234438\" aria-labelledby=\"figcaption_attachment_234438\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-234438\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/a-picture-containing-text-monitor-screen-screen.gif\" alt=\"Setting a dependent breakpoint\" width=\"540\" height=\"304\" \/><figcaption id=\"figcaption_attachment_234438\" class=\"wp-caption-text\">Hot reload for CSS<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Innovation at your fingertips<\/h2>\n<p>In Visual Studio 2022, we are continuing to add new C++ sanitization features to help you write reliable and secure C++ code. In Visual Studio 2019, we started to add sanitization features to MSVC with <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/addresssanitizer-asan-for-windows-with-msvc\/\">AddressSanitizer (ASan) for Windows with MSVC | C++ Team Blog (microsoft.com)<\/a>. With Preview 4, you can now use <a href=\"https:\/\/www.llvm.org\/docs\/LibFuzzer.html\">libFuzzer<\/a> with the MSVC compiler, so any binaries you compile with MSVC can now be fuzz tested by libFuzzer. The C++ team has a blog planned that will go into more details on how to use libFuzzer. In the meantime, you can find documentation <a href=\"https:\/\/docs.microsoft.com\/en-us\/cpp\/build\/reference\/fsanitize?view=msvc-160\">on Microsoft Docs<\/a>.<\/p>\n<p>If you\u2019ve ever started a new project by first creating code on your local machine and then found it a pain to get that code in a Git repo, Preview 4 has the solution for you. You can now create an Azure DevOps repository from the updated create Git repository experience. Visual Studio will create a new Git repository and push it to Azure DevOps with a single click.<\/p>\n<p><figure id=\"attachment_234439\" aria-labelledby=\"figcaption_attachment_234439\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-234439\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/graphical-user-interface-text-description-automa.png\" alt=\"Publish local repository to a remote\" width=\"540\" height=\"399\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/graphical-user-interface-text-description-automa.png 948w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/graphical-user-interface-text-description-automa-300x222.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/graphical-user-interface-text-description-automa-768x567.png 768w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><figcaption id=\"figcaption_attachment_234439\" class=\"wp-caption-text\">Publish local repository to a remote<\/figcaption><\/figure><\/p>\n<h2><\/h2>\n<p>With Preview 4, we\u2019re updating several of the top-voted personalization suggestions from our <a href=\"https:\/\/developercommunity.visualstudio.com\/search?space=8&amp;stateGroup=active&amp;ftype=idea\">developer community<\/a>. One of your suggestions was color-coding your tabs. You can find the setting to colorize document tabs by project under Tools &gt; Options &gt; Environment &gt; Tabs and Windows.<\/p>\n<p><figure id=\"attachment_234434\" aria-labelledby=\"figcaption_attachment_234434\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-234434\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-12.png\" alt=\"Screenshot of Visual Studio with color coded tabs\" width=\"520\" height=\"215\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-12.png 1101w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-12-300x124.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-12-1024x424.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-12-768x318.png 768w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><figcaption id=\"figcaption_attachment_234434\" class=\"wp-caption-text\">Color coded tabs in the horizontal document well<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<p><figure id=\"attachment_234435\" aria-labelledby=\"figcaption_attachment_234435\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-234435\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-13.png\" alt=\"Color coded tabs in the vertical document well\" width=\"512\" height=\"348\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-13.png 942w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-13-300x204.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-13-768x522.png 768w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><figcaption id=\"figcaption_attachment_234435\" class=\"wp-caption-text\">Color coded tabs in the vertical document well<\/figcaption><\/figure><\/p>\n<p>Color-coded tabs help you organize files visually by providing an extra visual clue, which is especially useful for files that share the same name, e.g. <code>program.cs<\/code>. We\u2019re excited to share this first release of color-coded tabs with you, and we\u2019re even more excited to hear your feedback on the visual look and understanding what scenarios would improve your workflow. If you\u2019ve given it a try, <a href=\"https:\/\/www.surveymonkey.com\/r\/9FSY9J3\">please take a few minutes to share your feedback in this anonymous survey<\/a>!<\/p>\n<p>In Visual Studio 2022, we are improving our theming capabilities to help you personalize your environment. We are teaming up with community theme authors to convert some Visual Studio Code themes to work in Visual Studio, adding more flexibility in the Visual Studio family of products. Winter is Coming is one of our first custom themes, <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=MadsKristensen.WinterIsComing\">now available in the Marketplace<\/a>! Stay tuned this week for more new themes coming soon.<\/p>\n<p><figure id=\"attachment_234436\" aria-labelledby=\"figcaption_attachment_234436\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-234436\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-14.png\" alt=\"Winter is Coming theme from the Visual Studio Extension Marketplace\" width=\"540\" height=\"403\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-14.png 1436w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-14-300x224.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-14-1024x764.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2021\/09\/word-image-14-768x573.png 768w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><figcaption id=\"figcaption_attachment_234436\" class=\"wp-caption-text\">Winter is Coming theme from the Visual Studio Extension Marketplace<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Summary<\/h2>\n<p>The features above are just a few examples of the direction we\u2019re going with Visual Studio 2022. There are a lot more features to be explored in Preview 4. Over the next few weeks, you\u2019ll see more blog posts coming for many of the new capabilities of Visual Studio 2022. If you can\u2019t wait, head on over to the <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/releases\/2022\/release-notes-preview\">release notes<\/a> to learn more about what\u2019s new in Preview 4.<\/p>\n<h2>Take part!<\/h2>\n<p>You can install Preview 4 side-by-side with Visual Studio 2019, and it\u2019s free for anyone to use while in preview. We want your help making Visual Studio 2022 the best developer experience for you, and we are excited for you to try out all the new productivity enhancements. We encourage you to download and use the preview just like you would use Visual Studio 2019. We appreciate your time in providing feedback via <a href=\"https:\/\/developercommunity2.visualstudio.com\/home\">Developer Community<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2019\">reporting a problem<\/a>, and taking part in surveys.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/vs2022preview\" target=\"_blank\">Download Visual Studio 2022 Preview<\/a><\/div><\/p>\n<h2>Relevant links<\/h2>\n<ul>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2022\/\">Visual Studio 2022 vision<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/productinfo\/vs-roadmap\">Visual Studio roadmap<\/a><\/li>\n<li><a href=\"https:\/\/aka.ms\/vssdk\/2022\/docs\">Extension migration guide<\/a><\/li>\n<li><a href=\"https:\/\/developercommunity2.visualstudio.com\/home\">Suggest a feature<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio?view=vs-2019\">Report a problem in Visual Studio<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are excited to announce the fourth preview release of Visual Studio 2022! With Preview 4, there are more new capabilities on the themes of personal and team productivity, modern development, and constant innovation. In this blog, we&#8217;re highlighting a few of the new capabilities of Visual Studio 2022 Preview 4. We\u2019d love for you [&hellip;]<\/p>\n","protected":false},"author":642,"featured_media":234445,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[237,6814,6832,510,53,12,6833],"class_list":["post-234446","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-net","tag-6814","tag-64-bit","tag-cpp","tag-performance","tag-visual-studio","tag-vxaml"],"acf":[],"blog_post_summary":"<p>We are excited to announce the fourth preview release of Visual Studio 2022! With Preview 4, there are more new capabilities on the themes of personal and team productivity, modern development, and constant innovation. In this blog, we&#8217;re highlighting a few of the new capabilities of Visual Studio 2022 Preview 4. We\u2019d love for you [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/234446","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\/642"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=234446"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/234446\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/234445"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=234446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=234446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=234446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}