{"id":242752,"date":"2023-05-17T09:00:29","date_gmt":"2023-05-17T16:00:29","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=242752"},"modified":"2023-05-17T14:33:01","modified_gmt":"2023-05-17T21:33:01","slug":"visual-studio-2022-17-7-preview-1-is-here","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2022-17-7-preview-1-is-here\/","title":{"rendered":"Visual Studio 2022 17.7 Preview 1 is here!"},"content":{"rendered":"<figure style=\"text-align: center;\"><iframe src=\"\/\/www.youtube.com\/embed\/-82puS-htN0\" width=\"560\" height=\"314\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><figcaption>If you don&#8217;t have access to YouTube, <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/17-7-P1-New-Features.mp4\">click here.<\/a><\/figcaption><\/figure>\n<p>Welcome to the Visual Studio Public Preview 1 of version 17.7! Following our recent <a href=\"https:\/\/aka.ms\/vs\/v176GA\">General Availability (GA) release of v17.6<\/a>, this exciting update offers a wide range of productivity enhancements tailored to the diverse needs of developers. Experience the cutting-edge improvements of Visual Studio and discover what lies ahead in this Preview release before it becomes widely available.<\/p>\n<p style=\"text-align: center;\"><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>Discover the array of new capabilities and enhancements we&#8217;ve introduced in this release, including a multi-branch graph visualization, a refined All-in-One search experience and several .NET and C++ enhancements. These improvements aim to optimize your workflow and boost productivity. With something for every developer, browse this comprehensive list of enhancements and let us know <a href=\"#share-your-feedback-and-stay-connected-with-visual-studio\">which of these enhancements is your favorite<\/a>:<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 113px;\">\n<tbody>\n<tr style=\"height: 28px;\">\n<td style=\"width: 11.3406%; height: 28px;\"><span style=\"font-size: 14pt;\"><strong>Area<\/strong><\/span><\/td>\n<td style=\"width: 88.6594%; height: 28px;\"><span style=\"font-size: 14pt;\"><strong>Enhancements<\/strong><\/span><\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"width: 11.3406%; height: 29px;\"><span style=\"font-size: 14pt;\"><a href=\"#productivity\"><strong>Productivity<\/strong><\/a><\/span><\/td>\n<td style=\"width: 88.6594%; height: 29px;\">\n<ul>\n<li><a href=\"#comparing-files\">Comparing Files<\/a>\u00a0<span style=\"font-size: 10pt;\">(\ud83d\ude4f<a href=\"https:\/\/developercommunity.visualstudio.com\/t\/is-there-a-way-to-compare-two-files-from-solution\/619706\">community suggestion<\/a>)<\/span><\/li>\n<li><a href=\"#multi-branch-graph-git-repository-improvements\">Multi-branch Graph &amp; Git Repository Improvements<\/a> <span style=\"font-size: 10pt;\">(\ud83d\ude4f<a href=\"https:\/\/developercommunity.visualstudio.com\/t\/how-do-i-view-the-history-of-all-branches-in-git\/934801\">community suggestion<\/a>)<\/span><\/li>\n<li><a href=\"#copy-and-trim-indentation\">Copy and Trim Indentation<\/a> <span style=\"font-size: 10pt;\">(\ud83d\ude4f <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/easy-copy-code-without-indentation\/1156022\">community suggestion<\/a>)<\/span><\/li>\n<li><a href=\"#all-in-one-search-enhancements\">All-in-One Search Enhancements<\/a> <span style=\"font-size: 10pt;\">(\ud83d\ude4f <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/New-Search-experience-does-not-abort-pre\/10284993\">feedback ticket<\/a>)<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"width: 11.3406%; height: 28px;\"><span style=\"font-size: 14pt;\"><strong><a href=\"#net-and-cloud-development\">.NET and cloud development<\/a><\/strong><\/span><\/td>\n<td style=\"width: 88.6594%; height: 28px;\">\n<ul>\n<li><a href=\"#intellitest-support-for-net6-and-netstandard\">IntelliTest Support for .NET 6+ and NetStandard<\/a> <span style=\"font-size: 10pt;\">(\ud83d\ude4f <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/add-intellitest-support-for-net-corestandard\/359250#T-N10347134\">community suggestion<\/a>)<\/span><\/li>\n<li><a href=\"#publish-blazor-webassembly-to-azure-static-web-apps\">Publish Blazor WebAssembly to Azure Static Web Apps<\/a><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr style=\"height: 28px;\">\n<td style=\"width: 11.3406%; height: 28px;\"><span style=\"font-size: 14pt;\"><a href=\"#c-and-game-development\"><strong>C++ and game development<\/strong><\/a><\/span><\/td>\n<td style=\"width: 88.6594%; height: 28px;\">\n<ul>\n<li><a href=\"#unreal-engine-macros-formatting-for-c\">Unreal Engine Macros Formatting for C++<\/a> <span style=\"font-size: 10pt;\">(\ud83d\ude4f<a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Auto-indentation-with-Unreal-Engine---C\/10155238\">community suggestion<\/a>)<\/span><\/li>\n<li><a href=\"#unreal-engine-naming-convention-checker-for-c\">Unreal Engine Naming Convention Checker for C++<\/a><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Our team is excited to share some of their favorite features in this release. Be sure to explore these highlights, and don&#8217;t hesitate to share your thoughts on this blog post to help us polish the experience before reaching General Availability (GA). Additionally, you can delve into the complete list of enhancements by checking out the <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/releases\/2022\/release-notes-preview\">Visual Studio 2022 17.7 Preview 1 Release Notes<\/a>.<\/p>\n<h3><\/h3>\n<p>&nbsp;<\/p>\n<h2>Productivity<\/h2>\n<h4>Comparing Files<\/h4>\n<p>In response to <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/is-there-a-way-to-compare-two-files-from-solution\/619706\">this highly upvoted ticket in Developer Community<\/a>, you can now compare files in Solution Explorer. You can right-click a file in Solution Explorer and use the context menu option \u201cCompare with&#8230;\u201d to open File Explorer to select an item for comparison. Alternatively, you can use the context menu option \u201cSelect for Compare,\u201d then right-click on another item in Solution Explorer and select \u201cCompare with <em>the selected file.<\/em>\u201d Either option will launch our compare view.<\/p>\n<p><figure id=\"attachment_242848\" aria-labelledby=\"figcaption_attachment_242848\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files.png\"><img decoding=\"async\" class=\"wp-image-242848 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files.png\" alt=\"Image Comparing Files\" width=\"498\" height=\"491\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files.png 498w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files-300x296.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files-24x24.png 24w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files-48x48.png 48w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Comparing-Files-96x96.png 96w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/a><figcaption id=\"figcaption_attachment_242848\" class=\"wp-caption-text\">Compare files in Solution Explorer<\/figcaption><\/figure><\/p>\n<p>This is just the start of improvements we&#8217;re planning to make for diffing experience, so please share your feedback about this feature <a href=\"https:\/\/aka.ms\/comparefiles\">here<\/a>.<\/p>\n<h4>Multi-branch Graph &amp; Git Repository Improvements<\/h4>\n<p>The power of Git really comes alive when you can see multiple branches at the same time to understand how the branches are related and inform operations. We&#8217;ve implemented the first version of <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/how-do-i-view-the-history-of-all-branches-in-git\/934801\">this suggestion,<\/a> to enable visualizing multiple branches in the same graph, along with other Git Repository improvements. When opening the Git Repo window, you start in the single branch view, and you can click on any branch to add that branch and its commits to the graph. In the below scenario, you can easily visualize new-branch-3 in order to cherry pick the bug fix commit onto New-branch-2, the currently checked out branch. You can also use the hover eye icon to toggle multiple branches on and off in the graph.<\/p>\n<div class=\"mceTemp\"><\/div>\n<p><figure id=\"attachment_242854\" aria-labelledby=\"figcaption_attachment_242854\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph-1-1.gif\"><img decoding=\"async\" class=\"wp-image-242854 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph-1-1.gif\" alt=\"Image Multi branch graph 1\" width=\"1758\" height=\"1080\" \/><\/a><figcaption id=\"figcaption_attachment_242854\" class=\"wp-caption-text\">Visualize multiple branches and execute cross branch operations.<\/figcaption><\/figure><\/p>\n<p>Additionally, you can:<\/p>\n<ul>\n<li>Get more space to view the graph and history table by collapsing the Branches panel using the highlighted collapse icon in the upper right corner.<\/li>\n<li>Maximize your commit details using the highlighted expand icon in the upper right corner.<\/li>\n<li>See avatars for your author in Azure DevOps repos.<\/li>\n<li>See the graph updates more smoothly when switching which branches are in view.<\/li>\n<\/ul>\n<p><figure id=\"attachment_242857\" aria-labelledby=\"figcaption_attachment_242857\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph.png\"><img decoding=\"async\" class=\"wp-image-242857 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph.png\" alt=\"Image Multi branch graph\" width=\"1272\" height=\"768\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph.png 1272w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph-300x181.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph-1024x618.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Multi-branch-graph-768x464.png 768w\" sizes=\"(max-width: 1272px) 100vw, 1272px\" \/><\/a><figcaption id=\"figcaption_attachment_242857\" class=\"wp-caption-text\">New Git Repo window lets you collapse selectors &amp; expand commit details.<\/figcaption><\/figure><\/p>\n<p>Known limitations: When you toggle a new branch on in the graph, the branch head may not be immediately visible. However, you can scroll to the branch head by selecting between items that have already been toggled on.<\/p>\n<p>This feature is on in preview under the flag \u201cGit Repository multiple branch history\u201d in Tools &gt; Options &gt; Preview Features, and we have many improvements on the way. Please let us know what you think in <a href=\"https:\/\/aka.ms\/MultiBranchGraphFeedback\">this survey.<\/a><\/p>\n<h4>Copy and Trim Indentation<\/h4>\n<p>If you&#8217;ve ever copied code from Visual Studio to another program (Outlook, Teams, Slack, etc), you\u2019ll like this feature. Visual Studio now automatically fixes indentation for you when you copy code from Visual Studio and paste it in another program.<\/p>\n<p><figure id=\"attachment_242871\" aria-labelledby=\"figcaption_attachment_242871\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim.png\"><img decoding=\"async\" class=\"wp-image-242871 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim.png\" alt=\"Image copy and trim\" width=\"2246\" height=\"1720\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim.png 2246w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim-300x230.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim-1024x784.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim-768x588.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim-1536x1176.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/copy-and-trim-2048x1568.png 2048w\" sizes=\"(max-width: 2246px) 100vw, 2246px\" \/><\/a><figcaption id=\"figcaption_attachment_242871\" class=\"wp-caption-text\">Copy and Trim Indentation<\/figcaption><\/figure><\/p>\n<p>Try out this feature by enabling it in <em>Tools &gt; Manage Preview Features &gt; &#8220;Copy and Trim Indentation&#8221;<\/em>. If you have feedback to share with us about this feature, let us know <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/easy-copy-code-without-indentation\/1156022\">here<\/a>.<\/p>\n<h4>All-in-One Search Enhancements<\/h4>\n<p>We\u2019ve tackled known accuracy and performance issues resulting in several enhancements including:<\/p>\n<ul>\n<li>Exact matches are now prioritized higher in the results list.\n<ul>\n<li><a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Searching-for-proto-files-with-the-unif\/10315594\">Exact file name matches<\/a><\/li>\n<li><a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Code-Search---Go-To-Files-gives-less-\/10293193\">Prioritizing file name over path<\/a><\/li>\n<\/ul>\n<\/li>\n<li>The results list now accurately updates as you type.<\/li>\n<\/ul>\n<p><figure id=\"attachment_242876\" aria-labelledby=\"figcaption_attachment_242876\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/AIOS-Enhancements.gif\"><img decoding=\"async\" class=\"wp-image-242876 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/AIOS-Enhancements.gif\" alt=\"Image AIOS Enhancements\" width=\"852\" height=\"504\" \/><\/a><figcaption id=\"figcaption_attachment_242876\" class=\"wp-caption-text\">All-in-One Search Enhancements<\/figcaption><\/figure><\/p>\n<p>Try out the All-In-One Search experience by enabling it in <em>Tools &gt; Manage Preview Features &gt; &#8220;New Visual Studio Search experience (restart required)&#8221;<\/em>.<\/p>\n<p>If you have feedback to share with us about this feature, let us know <a href=\"https:\/\/www.research.net\/r\/FDGF3RX\">here<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<h2>.NET and Cloud development<\/h2>\n<h4>IntelliTest Support for .NET 6+ and NetStandard<\/h4>\n<p>Now available in Preview, once enabled, the editor context menu \u201cIntelliTest (Preview)\u201d will be enabled in net6 and netstandard code files.<\/p>\n<p><figure id=\"attachment_242902\" aria-labelledby=\"figcaption_attachment_242902\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/IntelliTest-Support-for-NET6-and-NetStandard.gif\"><img decoding=\"async\" class=\"wp-image-242902 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/IntelliTest-Support-for-NET6-and-NetStandard.gif\" alt=\"Image IntelliTest Support for NET6 and NetStandard\" width=\"1072\" height=\"940\" \/><\/a><figcaption id=\"figcaption_attachment_242902\" class=\"wp-caption-text\">IntelliTest Support for .NET 6+ and NetStandard<\/figcaption><\/figure><\/p>\n<p><strong>Create Project<\/strong> will create a compatible test framework project into which generated tests can be saved and subsequently run using Test Explorer or through the CLI. This will create stubs of methods, but not actually probe your code to create asserts. This can be useful by itself to create a lattice into which you would inject your own code, but typically it\u2019s a placeholder and provides a preview of all the methods supported in your code file. It\u2019s not necessary to create a project before generating tests.<\/p>\n<p><strong>Generate Tests<\/strong> can be run for a single method or an entire class. This process will build and probe the target assembly. The Z3 Solver leverages symbolic execution to recommend testing parameters. Subsequently test code is emitted and profiled to capture and retain all test cases that increase coverage of the target code. The test set is continually deduped to retain parameters that maximize coverage and minimize repetition. The IntelliTest results window displays probing status and the list of tests created with inputs, outputs, and assertion results. These tests can be saved to the created projects or to new projects as desired. Saving test provides the choice of an existing project or creating a new project into which the tests are saved.<\/p>\n<p>Try out the IntelliTest Support for .NET 6+ and NetStandard by enabling it in <em>Tools &gt; Manage Preview Features &gt; &#8220;<\/em> <em>IntelliTest support for NetFx and Net6 using Z3 v4 (restart required)&#8221;<\/em>.<\/p>\n<p>Learn more at <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/test\/intellitest-manual\">https:\/\/learn.microsoft.com\/en-us\/visualstudio\/test\/intellitest-manual<\/a>.<\/p>\n<h4>Publish Blazor WebAssembly to Azure Static Web Apps<\/h4>\n<p>In this release we have added the ability to publish ASP.NET Core Blazor WebAssembly (WASM) projects to <a href=\"https:\/\/azure.microsoft.com\/en-us\/products\/app-service\/static\">Azure Static Web Apps<\/a>. When you publish a Blazor WASM project after you select Azure as the target, you will now see an option to select Azure Static Web Apps. See the image below.<\/p>\n<p><figure id=\"attachment_242907\" aria-labelledby=\"figcaption_attachment_242907\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Publish-Blazor-WebAssembly-to-Azure-Static-Web-Apps.png\"><img decoding=\"async\" class=\"wp-image-242907 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Publish-Blazor-WebAssembly-to-Azure-Static-Web-Apps.png\" alt=\"Image Publish Blazor WebAssembly to Azure Static Web Apps\" width=\"480\" height=\"337\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Publish-Blazor-WebAssembly-to-Azure-Static-Web-Apps.png 480w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Publish-Blazor-WebAssembly-to-Azure-Static-Web-Apps-300x211.png 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><figcaption id=\"figcaption_attachment_242907\" class=\"wp-caption-text\">Publish Blazor WebAssembly to Azure Static Web Apps<\/figcaption><\/figure><\/p>\n<p>You may be interested in publishing your Blazor WASM project to Azure Static Web Apps to take advantage of its built-in capabilities as well as a potentially lower cost versus publishing to a compute-based Azure service. Some of the built-in capabilities include global hosting, integration with backends like Azure Functions and much more.<\/p>\n<p>&nbsp;<\/p>\n<h2>C++ and game development<\/h2>\n<h4>Unreal Engine Macros Formatting for C++<\/h4>\n<p>In response to this <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Auto-indentation-with-Unreal-Engine---C\/10155238\">Developer Community ticket<\/a> and community feedback, we have added an option to use special indentation rules for Unreal Engine macros. Available as a preview feature, Visual Studio will detect and use indentation and formatting rules for your Unreal Engine reflection macros.<\/p>\n<p><figure id=\"attachment_242910\" aria-labelledby=\"figcaption_attachment_242910\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Macros-Formatting-for-C.png\"><img decoding=\"async\" class=\"wp-image-242910 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Macros-Formatting-for-C.png\" alt=\"Image Unreal Engine Macros Formatting for C\" width=\"720\" height=\"405\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Macros-Formatting-for-C.png 720w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Macros-Formatting-for-C-300x169.png 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><figcaption id=\"figcaption_attachment_242910\" class=\"wp-caption-text\">Unreal Engine Macros Formatting<\/figcaption><\/figure><\/p>\n<p>To turn on Unreal Engine specific formatting, search &#8220;Unreal Engine&#8221; in Options or go to Tools -&gt; Options -&gt; Text Editor -&gt; C\/C++ -&gt; Code Style -&gt; Formatting -&gt; Unreal Engine and check &#8220;Apply special formatting for Slate declarative syntax and Unreal Engine reflection macros.&#8221;<\/p>\n<p>Once enabled, Visual Studio will properly indent code on lines after reflection macros and use special rules for the Slate declarative syntax.<\/p>\n<p><figure id=\"attachment_242913\" aria-labelledby=\"figcaption_attachment_242913\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Enable-Unreal-Engine-Macros-Formatting-for-C.png\"><img decoding=\"async\" class=\"wp-image-242913 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Enable-Unreal-Engine-Macros-Formatting-for-C.png\" alt=\"Image Enable Unreal Engine Macros Formatting for C\" width=\"480\" height=\"324\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Enable-Unreal-Engine-Macros-Formatting-for-C.png 480w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Enable-Unreal-Engine-Macros-Formatting-for-C-300x203.png 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><figcaption id=\"figcaption_attachment_242913\" class=\"wp-caption-text\">Enable Unreal Engine Macros Formatting<\/figcaption><\/figure><\/p>\n<h4>Unreal Engine Naming Convention Checker for C++<\/h4>\n<p>Visual Studio will now give you hints when your symbols are not conformant to the Unreal Engine coding style. After adding <a href=\"https:\/\/aka.ms\/uenamingconvention\">an .editorconfig file <\/a>\u00a0to your Unreal Engine project, Visual Studio will display naming convention warnings in the Error List and provide a Quick Fix option upon right-clicking.<\/p>\n<p><figure id=\"attachment_242948\" aria-labelledby=\"figcaption_attachment_242948\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Naming-Convention-Checker-for-C.png\"><img decoding=\"async\" class=\"wp-image-242948 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Naming-Convention-Checker-for-C.png\" alt=\"Image Unreal Engine Naming Convention Checker for C\" width=\"1246\" height=\"701\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Naming-Convention-Checker-for-C.png 1246w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Naming-Convention-Checker-for-C-300x169.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Naming-Convention-Checker-for-C-1024x576.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Unreal-Engine-Naming-Convention-Checker-for-C-768x432.png 768w\" sizes=\"(max-width: 1246px) 100vw, 1246px\" \/><\/a><figcaption id=\"figcaption_attachment_242948\" class=\"wp-caption-text\">Unreal Engine Naming Convention Checker<\/figcaption><\/figure><\/p>\n<p>While this results from Unreal Engine developer feedback, the feature is not specific to Unreal Engine. You can <a href=\"https:\/\/learn.microsoft.com\/en-us\/visualstudio\/ide\/cpp-editorconfig-properties\">customize your own .editorconfig<\/a> file for Visual Studio to follow.<\/p>\n<p>This feature is on-by-default. To change whether Visual Studio should treat the checks as Warnings or Suggestions, go to Tools -&gt; Options -&gt; Text Editor -&gt; C\/C++ -&gt; Code Style -&gt; Linter and change &#8220;Naming Convention (experimental)&#8221;. Ensure that you have .editorconfig file.<\/p>\n<p><figure id=\"attachment_242950\" aria-labelledby=\"figcaption_attachment_242950\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Naming-Convention-Settings.png\"><img decoding=\"async\" class=\"wp-image-242950 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Naming-Convention-Settings.png\" alt=\"Image Naming Convention Settings\" width=\"949\" height=\"628\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Naming-Convention-Settings.png 949w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Naming-Convention-Settings-300x199.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/05\/Naming-Convention-Settings-768x508.png 768w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/a><figcaption id=\"figcaption_attachment_242950\" class=\"wp-caption-text\">Naming convention settings<\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Share your feedback and stay connected with Visual Studio!<\/h2>\n<p><iframe src=\"https:\/\/www.surveymonkey.com\/r\/TT87PMQ\" width=\"760\" height=\"350\"><\/iframe><\/p>\n<p>As you use Visual Studio, let us know what you love, what you like, and where you\u2019d like us to improve. You can share feedback with us via <a href=\"https:\/\/developercommunity.visualstudio.com\/home\">Developer Community<\/a>: report any bugs or issues via <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/ide\/how-to-report-a-problem-with-visual-studio\">report a problem<\/a> and <a href=\"https:\/\/developercommunity.visualstudio.com\/report?space=8&amp;entry=suggestion\">share your suggestions<\/a> for 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<p>As always, we appreciate the time you\u2019ve spent reporting issues and hope you continue to give us feedback on how we\u2019re doing and what we can improve.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the Visual Studio Public Preview 1 of version 17.7! This exciting update offers a wide range of productivity enhancements tailored to the diverse needs of developers. Experience the cutting-edge improvements of Visual Studio and discover what lies ahead in this Preview release before it becomes widely available.<\/p>\n","protected":false},"author":4322,"featured_media":239569,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[],"class_list":["post-242752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio"],"acf":[],"blog_post_summary":"<p>Welcome to the Visual Studio Public Preview 1 of version 17.7! This exciting update offers a wide range of productivity enhancements tailored to the diverse needs of developers. Experience the cutting-edge improvements of Visual Studio and discover what lies ahead in this Preview release before it becomes widely available.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/242752","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\/4322"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=242752"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/242752\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/239569"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=242752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=242752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=242752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}