[MUSIC]
>> Hello everybody.
I hope you all enjoyed Into Focus, I sure did.
So many Scotts, we talked to Julia.
There's just a lot of really cool things
going on in the developer space.
I'm Leslie Richardson, I am a proud black woman
with thick black hair and glasses rocking a blue shirt,
red jeans, and I'm a whopping five foot tall.
I'm being surrounded by tons of
different old-school Microsoft memorabilia,
including some boxes from
previous Visual Studio releases.
Which is especially cool to me because
I'm a Program Manager on Visual Studio.
Yes, that was me in the Scott Hanselman Dev Meeting Keynote.
It was super fun to make.
Shout out to everybody involved.
It was so much fun and I hope you enjoyed it too.
I'm excited to be with you
for more of Day 2 at Microsoft Build,
so let's dive right in.
Now, joining me with a preview of what's to come for
Visual Studio in 2022 is Program Manager,
Mads Kristensen. Welcome, Mads.
>> Hello, Leslie. Thanks for having me on.
>> I think I can guess what the answer is going to be,
but what is the biggest addition coming to
Visual Studio 2022 Preview 1?
>> Well, I think definitely the thing
that's gotten most attention is
the shift from 32-bit to 64-bit for Visual Studio,
the main application itself.
That's what everyone's talking about.
That is the biggest thing I believe.
>> Yeah. This has been
such a huge ask I don't know about you,
but I've gotten so many customers asking me,
"When is 64-bit happening?"
Why now?
What took so long?
>> Yeah, it's been an ask
from the community for a long time.
We've been noticing over
the years that developers are getting
more RAM on their development machines.
So now they can actually take
more advantage of the 64-bit.
But on top of that, as you know,
we've been moving a lot of components into
their own 64-bit processors over
the past many versions of Visual Studio.
We were coming to an end of that strategy
and so the next logical conclusion was
to move the entire Visual Studio executable
to 64-bit as well.
>> That's so exciting.
This really has been a long time coming so
seeing that evolution is really sweet.
In addition to those memory issues,
is performance being improved as well?
>> Yeah. Actually, let's run this little demo video here.
It turns out that we're getting a lot of
performance out of moving to 64-bit as well.
You can see here on the right-hand side,
we're opening a huge solution in Visual Studio 2022,
and it finishes much faster
loading that solution than
what you see on the left-hand side,
which is Visual Studio 2019,
and that's basically a 32-bit versus the 64-bit.
What's happening under the hood is
that the .NET garbage collector
is under much less pressure
when we're in a 64-bit application.
That means that our CPU can do other things
and that means fewer hangs
and much better performance in certain situations.
We've actually been a little bit surprised at
just how you can feel
that performance coming through from the move to 64-bit.
There are other factors that plays a role as well.
For instance, if you're calling Windows 32 APIs,
that is a little bit more efficient
when you're doing that from
a 64-bit process to the 64-bit OS.
There's a bunch of different things that
make up the change in performance here as well.
>> That is so great,
especially if you have those large solutions with
tons of different files and things, so that's awesome.
But that's not the only cool thing
about Visual Studio 2022.
We also talked about IntelliCode whole line completion
in the Scott Hanselman keynote.
So can you tell me a little bit more about that?
>> Yeah. IntelliCode is Visual Studio's machine learning
and AI engine that all runs within Visual Studio
and that there's a cloud element to that as well.
We keep improving that
with every release we do to Visual Studio.
We have some really cool stuff coming out,
which is the whole line completion.
Let's run this little demo here.
This is actually a real ASP.NET controller class here.
Notice how IntelliCode predicts
the next chunk of code based on my current context
and then presents it as a shadow text
to the right of the cursor.
If you like it, just hit "Tab" "Tab"
and then that accepts that,
or just keep typing if you don't want that suggestion
to be inserted in your document here.
What's really significant about
this is that the AI engine knows the context you're in
and it's been scanning over half a million open source
repos to understand source code and create
the machine learning model that is the basis of all this.
So very impressive stuff.
>> That is so impressive.
It's equal parts, really cool,
and can save me a lot of time,
and also a little scary.
It looks like magic when it's happening in real life
so just to know that there's all of this AI
and training going on behind the scenes is really cool.
Thousands of different repos.
>> It really looks like magic.
>> That is really awesome.
Is there anything else that developers should know about
and why they should immediately hit "Download"
when Preview 1 does get released?
>> Yeah. Let's just jump straight
into the next demo here.
It's about a simple test project that I have
where different tests check for
what version of operating system they're executing on,
and also what version of the .NET that they're running on.
You can see the tests are discovered
and when they're run,
you can see the success or failed depending
on what OS they're running on.
That's because we're running on Windows,
so all the Windows tests succeed.
But let's change that to run on Linux.
I can change my environment from local to
a Linux option running .NET 3.1 and rerun the tests.
Now we can see a different result because
we're running on a different operating system here.
I can even choose a different environment here,
the Alpine Linux image for instance with .NET 6.
So that's really helpful if I want to run unit tests on,
let's say some preview stuff on
my latest code running .NET 6 which is in preview.
On my local machine, I can execute all this
on different environment configuration.
I can set that up whether
that be Docker container images,
WSL, SSH, or Docker file definitions,
I can handle all that directly
from Visual Studio here
and execute that locally on my DevBox.
Very exciting stuff.
>> Yeah, that's really exciting.
So you don't even have to worry about
how your tasks are going to
operate on a different operating system,
it's all taken care of for your, right?
>> Exactly.
>> That is so great, saves me so much time.
Where can people go to learn more about
what's new in Visual Studio 2022 Preview 1?
>> Well, you definitely want to hit
the Visual Studio blog.
That's where we keep all of the announcements,
that's where we have the broader roadmap
and vision of Visual Studio 2022,
so go check that out.
There's a lot of great information
and you can see what
to expect from Visual Studio going forward.
>> Exciting stuff.
Well, thank you so much,
Mads for joining us.
I'm really excited to see Visual Studio 2022
finally come out to the masses
and I can't wait for everybody to try it.
Everyone needs to hit "Download" and share your feedback.
Definitely, I think you can agree on that, Mads.
>> Oh, yeah.
>> I hope you have a great time at Build.
>> Thank you.