News

Visual Studio 2022 17.1 Preview 2 Ships

Microsoft shipped Preview 2 of its groundbreaking 64-bit Visual Studio 2022 IDE, officially called version 17.1.

While this is deemed Visual Studio 2022 17.1 Preview 2, it's almost kind of a first official preview, as Preview 1 was simply the VS 2022 Preview 5 that was updated to v17.1 Preview 1 upon the VS 2022 launch date in November.

"We've continued to iterate on the themes of the Visual Studio 2022 release and have enhanced existing features, brought new productivity improvements, and made it easier for you to make Visual Studio your own," said Dominic Nahous, senior lead program manager, Visual Studio, in a Jan. 5 blog post.

He detailed changes in the Git, search and navigation, C++ and .NET experiences, along with some new capabilities for personalizing colored tabs. Perhaps unsurprisingly, it was the latter -- colored tabs -- that stirred much interest, judging from the first comment to the post. Although Nahous mentioned colored tabs as the very last item in his post -- after detailing new coding features and functionality -- colored tabs prompted the first comment, reaffirming that VS developers are notoriously finicky about their themes, colors, icons and other UI design concerns. "I like the new colored tabs feature, but please enable 'Group by Project' also for 'Top' tabs," the comment said. "I have my tabs at the top and that is the last feature from the old CDW I'm still missing ... Thanks for your great work!"

Here's how Nahous explained what's new in colored tabs.

"After releasing the highly requested color tabs functionality to help you personalize your Visual Studio experience, we heard feedback that one of the most common ways the community likes to color tabs is by project and by file extension," he said. "These color schemes are both available by default. We've also added the capability to pick your own tab colors. To try this out, first enable color tabs. After enabling colored tabs, right click on a tab and navigate to Set Tab Color to pick from the palette."

Colored Tab Enhancement
[Click on image for larger view.] Colored Tab Enhancement (source: Microsoft).

As far as that other new functionality, Nahous led with new Git capabilities. "Now, it's easy to compare your current branch with other branches in your repository, which can be very helpful when you're preparing for a pull request or even before you delete a branch," he said.

Other Git enhancements include:

  • Enhanced detached head support, including the ability to check out a commit and check out the tip of any remote branch. "Now you can checkout any commit and go back to a previous point in your repository's history to run or test your code. You can also quickly review pull requests and evaluate your team's updates by checking out the tip of any remote branch."
  • Improvements to the multi-repo support preview feature, with an enhanced inner loop branching experience. "Now you can utilize branch pickers on both the status bar and the Git changes tool window to checkout branches and do lightweight branch management across all or your active repositories."
  • When creating new branches, developers can now create new ones across all active repositories at the same time. "You no longer need to manually create branches across repositories."
  • The first line-staging preview functionality, letting developers, for one example, utilize the diff to stage chunks or sections of code.

Other new features help developers keep their code clean automatically via the configuration of personalized Code Cleanup profiles that run automatically when a file is saved. "This will help minimize stylistic violations within PRs and more by allowing you to spend less time fixing code that doesn't meet specific standards and more time focusing and being productive."

Related to that, developers can now keep their files up to date automatically with the IDE's new ability (in preview) to automatically save "dirty" documents whenever the Visual Studio application loses focus. "When you switch to any other application in Windows, you can have Visual Studio automatically commit your changes to disc for you."

Other enhancements include:

  • A new Stack Trace Explorer window that displays stack traces, letting developers simply click to navigate directly to the related code. "You can copy a stack trace from your solution and paste it into the Stack Trace Explorer window to get started. To open the Stack Trace Explorer window, go to View > Other Windows and select Stack Trace Explorer."
  • A tweak to the EditorConfig UI that lets developers define code styles and formats in order to keep code consistent. That UI now features Naming Style to help enforce naming conventions in code.
  • C++ enhancements, including beefing up embedded development with new views that enable coders to inspect and interact with peripheral registers on microcontrollers and real time operating systems (RTOS) objects.
  • Additional macOS development support that builds upon earlier versions of Visual Studio wherein the team added capabilities for targeting macOS for remote development, part of the umbrella of features that the dev team calls "Linux development with C++." Preview 2 improves debug attach, which was introduced in an earlier v17.0 Preview 3. "We've added more capabilities for core debugging with LLDB and a default configuration for targeting macOS in our CMake experience. We made the experience easier by automatically detecting the target system; if it's macOS, we'll automatically use LLDB in core debugging and debug attach experiences."

More detailed information on all of the above and much more can be found in the Preview 2 release notes

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube