Visual Studio 2022 version 17.8 Preview 1 released

    Visual Studio 2022 version 17.8 Preview 1 released

    Visual Studio 2022 version 17.8 Preview 1 released


    Last Updated: 09 Aug 2023 at 15:41



    released Aug 8th, 2023

    Summary of What's New in this Release of Visual Studio 2022 version 17.8 Preview 1


    Productivity Features


    C++ and game development


    Debugging and Diagnostics

    Features Community Suggestions
    .NET Counters Tool in Debugging Scenario

    Razor Tooling


    JavaScript and TypeScript Development


    Testing

    Features Community Suggestions
    New IntelliTest now in Preview

    Developer Community Suggestions: You asked, we listened!


    Developer Community



    Productivity Features:

    ####Add Reviewers to your Pull Request You can now add your reviewers to your pull requests in Visual Studio for both Azure DevOps and GitHub.
    ![Add reviewers to pull request](./media/create-pr-reviewers.png "Add reviewers to your pull request" =750x)
    Try this out by clicking on the "Create a Pull Request" link that appears on push, or by selecting Git > GitHub or Azure DevOps > New Pull Request from the top level menu. Then, navigate to the Reviewers section and search for the reviewers you'd like to add. We plan to continue making updates to improve this Pull Request experience, so please share your feedback about this feature here and engage with us on the suggestion ticket in Developer Community.
    ####Summary Diff As a continuation of our efforts to improve the diffing experience in Visual Studio, we've implemented the Summary view in the diff and compare views. This new option allows you to see only the changes in the file with a few lines of context, making reviewing your changes in a commit or the comparison between two files much more efficient.
    ![Summary Diff](./media/17.8p1_Summary_Diff.png "Summary Diff" =850x)
    Let us know what you think of this feature by sharing your feedback here and engage with us on the suggestion ticket in Developer Community.
    ####Multi-Repo Limit Increase As more of you are using our Multi-repository features, many needed the number of active repositories to be more than 10. You can now work with up to 25 repositories at once in your solution.
    ####Case Preserving Find and Replace When you do a Replace, you can now preserve the original casing of each match in your code. Note that to get Pascal case and Camel case, your Replace string must be in Pascal case or Camel case.
    ![Case Preserve Find and Replace](./media/case-preserve-replace-example.png "Case Preserve Find and Replace" =850x)
    Toggle case preservation in the Replace window with Alt+V or by clicking on the Preserve case option.
    Quick Replace (Ctrl+H):
    ![Case Preserve Quick Replace](./media/case-preserve-replace-quick-replace-highlighted.png "Case Preserve Quick Replace (Ctrl + H)" =450x)
    Replace in Files (Ctrl+Shift+H):
    ![Case Preserve Replace in Files](./media/case-preserve-replace-replace-in-files-highlighted.png "Case Preserve Replace in Files (Ctrl + Shift + H)" =650x)
    Share your thoughts on the case preserving replace experience on this Developer Community ticket: Case-Preserving Search & Replace Across Multiple Files.

    C++ and game development:

    ####Unreal Engine Snippets Start typing in the editor window and UE snippets will start showing as a member list item in your Unreal Engine projects. Press tab or enter to create the snippet.
    ![Unreal Engine snippets](./media/17.8p1_ue_snippets.png "Unreal Engine snippets" =650x)
    Supported snippets include (UClass, UClassExported, UENUM, UFUNCTION, UINTERFACE, UINTERFACEExported, UPROPERTY, USTRUCT, USTRUCTExported, UELOG, SWidget, TActorRange, TObjectRange, WITH_EDITOR)
    ####Unreal Engine Test Adapter You can now create, manage, and run your Unreal Engine tests from within Visual Studio. To ensure Unreal Engine Test Adapter is enabled properly, double check that "Unreal Engine Test Adapter" is selected in the Visual Studio Installer under the "Game development with C++" workload. After installing the UE Test Adapter, your Unreal Engine tests will automatically show up in the Test Explorer when you open Visual Studio.
    ![Unreal Engine Test Adaptor](./media/17.8p1_ue_test_adaptor.png "Unreal Engine test adaptor" =250x)
    The latest version of our Unreal Engine plugin from the UE marketplace or GitHub is required.
    ![Tafue example](./media/17.8p1_tafue_example.png "Tafue example" =650x)
    ####Build Insights Functions View We added a "Functions View" to Build Insights integration. Build Insights' generated diagnostic report will now show you function generation time as well as ForceInlines.
    ![Build Insights Functions View](./media/17.8p1_build_insights_functions.png "Build Insights Functions View" =850x)
    ####Make member function const hints
    This feature suggests making a member function const if it logically should not modify the object's state. One of the advantages of utilizing const member functions is the enhanced safety and predictability they bring to the codebase. By clearly distinguishing between functions that modify the object's state and those that do not, it becomes easier to reason about the behavior of different member functions.
    By hovering over a member function and clicking the light bulb icon, you can quickly access suggestions to mark the function as const.
    ![Member function const hints lightbulb suggestions](./media/17.8p1_member_function_lightbulb_suggestions.png "Member function const hints lightbulb suggestions" =650x)
    By default, this feature is set as a suggestion, indicated by three dots below the function. To configure the setting, navigate to Tools > Options > Text Editor > C/C++ > Code Style > Linter.
    ![Configure member functions const hints](./media/17.8p1_configure_const_hints.png "Configure member functions const hints" =650x)
    ####Size and Alignment Hints You can now hover over a class, struct, union, or enum to see the size and alignment of that type.
    ![Size and alignment](./media/17.8p1_Size_Alignment_Hints.gif "Size and alignment" =650x)

    Debugging and Diagnostics

    ####.NET Counters Tool in Debugging Scenario You now have convenient access to the .NET Counter through the diagnostics window by choosing the ".NET Counters" selection from the "Select Tool" dropdown menu. Even while conducting debugging sessions, you can utilize the capabilities of .NET Counters to oversee and assess crucial performance metrics.
    ![.NET Counters](./media/17.8p1-dotnetcounters.png ".NET Counters" =850x)

    Razor Tooling

    ####Code Action for Event Handler Method Generation If you’re using an event like @onclick or @onactivate to reference a C# method that hasn’t been defined yet, you can use a new Razor code action to automatically generate that event handler method. This code action also supports custom event arguments.
    ![Code Action for Event Handler Method Generation](./media/17.8p1_event_handler_method_gen.gif "Code Action for Event Handler Method Generation" =650x)
    ####Background Color for C# Code You now have the option to add a background color for C# code located within Razor files. Turned off by default, enable this option by going to Tools > Options > Text Editor > Razor > Advanced and setting Background for C# Code to True.
    ![Background Color for C# Code](./media/17.8p1_background_color_C#Code.png "Background Color for C# Code" =650x)

    JavaScript and TypeScript Development

    ####New React TypeScript and ASP.NET Combined Templates When we initially released the JavaScript/TypeScript with ASP.NET Combined Templates in this blog post, we got feedback that users deserve a better React TypeScript project creation experience. This new React TypeScript with ASP.NET combined template gets the tsconfig and SpaProxy set up out of the box.
    ![React TypeScript and ASP.NET Combined Templates](./media/17.8p1_React_TypeScript_ASPNET_Combined_Templates.png "React TypeScript and ASP.NET Combined Templates" =650x)

    Testing

    ####New IntelliTest now in Preview
    IntelliTest explores your .NET code to generate test suites with high code coverage, powered by the latest version of the Z3 problem solver. When you Generate Tests, you have the ability to select which tests you’d like to preserve into a test project that can serve as your regression suite. As your code is updated, you can rerun IntelliTest to keep the generated tests in sync with your code.
    Previous implementations of this Enterprise Edition feature only supported code targeting .NET Framework and did not support x64 configuration. This updated version includes the following:


    Enable this feature through Tools > Manage Preview Features and selecting IntelliTest support for NetFx and Net6 using Z3 v4 (requires restart).

    ![Enable Intellitest](./media/17.8p1_enable_Intellitest.png "Enable Intellitest" =450x)

    Then in your code, right click within a method and select IntelliTest (Preview) and either Create Project to create a project where your tests can be saved or Generate Tests to generate a set of tests to review and decide which ones to keep.

    ![Activate Intellitest in Code](./media/17.8p1_activate_Intellitest_in_Code.png "Activate Intellitest in Code" =450x)

    Source:
    Brink's Avatar Posted By: Brink
    08 Aug 2023


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 04:15.
Find Us




Windows 10 Forums