Visual Studio 2022 will write code for you!!! - Visual Studio 2022 Series - Part 1

Manager — SDE
Search for a command to run...

Manager — SDE
No comments yet. Be the first to comment.
← Previous: What’s New in the SDK and Tooling for .NET 9 .NET Aspire is a set of tools, templates, and packages designed to help developers build observable, production-ready apps that embrace cloud-native and distributed computing best practices. .N...

← Previous: What’s New in .NET Libraries for .NET 9 The .NET 9 SDK introduces several new capabilities and improvements to streamline development workflows, enhance build and test experiences, improve NuGet security and performance, and provide great...

← Previous: What’s New in .NET MAUI for .NET 9 .NET 9 adds a wide range of enhancements and new APIs across the base class libraries. These improvements touch everything from low-level data structures and cryptography to JSON serialization, text pr...

← Previous: What’s New in ML.NET .NET Multi-platform App UI (.NET MAUI) in .NET 9 focuses on improving overall product quality, test coverage, performance, and stability. While previous releases introduced major new capabilities and controls, the emp...

← Previous: What’s new in ASP.NET Core 9.0 ML.NET continues to evolve as a full-featured, open-source machine learning framework for .NET developers, enabling you to create, train, and deploy custom ML models directly in your .NET applications. ML....

Visual Studio 2022 Preview 1 is now available! If you've missed the official announcement on June 17th, 2021 - check it out. If you want to try out, head over to the official download page here.
The Visual Studio 2022 previews can be installed side-by-side with earlier versions of Visual Studio, are available in all three editions (Community, Pro, and Enterprise), and are free to use.
A lot of new features have come out in this release, however, Visual Studio 2022 is just out with Preview 1, meaning there will be more and more new features coming in new Previews.
But today I want to talk about 2 of my favorite features:
64-bit
IntelliCode
The first and the biggest feature is - and boy, that's big one - it's 64-bit!!! 😍 This means - Visual Studio 2022 will no longer be limited to ~4gb of memory in the main devenv.exe process.

In Microsoft's own words:
With a 64-bit Visual Studio on Windows, you can open, edit, run, and debug even the biggest and most complex solutions without running out of memory.
This doesn't mean you can't develop 32-bit applications using Visual Studio 2022, it just means the Visual Studio itself wil be able to fully utilize your 64-bit hardware.
This one's my favorite new feature. We all know and love IntelliCode - Microsoft's AI-enabled Visual Studio component which suggests code changes using Machine Learning Model based on 1000s of Open-Source GitHub repositories and optionally your own repositories if you permit.
In Visual Studio 2022, IntelliCode has gone one step further and not only will suggest the code changes, but it'll also will write the code for you 😲. Look at this GIF:

As soon as I write StringBuilder, it knows what I'm about to write and with the TAB press, it writes StringBuilder sb = new StringBuilder(); for me.
Similarly in the foreach loop, it know I'm going to append the item to the StringBuilder and writes sb.Append(item) for me.
Finally after the loop it knows I want to print it, so it prints using Console.WriteLine by calling ToString() on the StringBuilder reference sb.
Cool, right!!!
This is just a Preview 1, there will be at-lest 4-5 previews before it hits GA - General Availability. So watch out for more posts.
Let me know which features ya'll are excited about.
Read more about IntelliCode.
Check out the Official announcement
Download Visual Studio 2022 and try it now.
Originally Posted at: https://blog.satishyadav.com/Visual-Studio-2022-will-write-code-for-you/
Happy Coding! 👨💻