[MUSIC].
>> Hi, I'm Aaron and I'm a Product Manager for Visuals,
30 years IntelliCode Suite of Features.
Today, let's take a look at our new inline completions.
Here we are in the eShop on Web solution.
It's a real app and codebase,
and we're working in
the set password method of my Managed controller.
Now I'm going to start typing.
Let's start by checking our model state.
If you've programmed before,
you've seen the IntelliSense list grow from simplest strings
suggestions to AI-powered completions with the stars next to them.
But now, look at these gray texts.
We've extended the IntelliCode that you've loved for
years to complete up to a whole line of code now.
Let's explore.
I'm going to hit "Tab", Tab.
Our user experience is an extension of what you're already doing.
You're used to pressing tab.
Let's hit "Return" and in this pattern,
we're going to return the view.
We, as programmers have context and we've taught IntelliCode to
understand context with a smart model that learns
from the code that you're writing but runs entirely locally.
This is going to work on a plane if you'd like.
Again, I'm going to hit Tab,
Tab to accept the inline completion.
To elaborate a little bit here, IntelliCode inline completions,
we'll consider things like your variable names and positions,
the sort of code that you're writing.
The libraries you're using,
functions in nearby code,
and your selection,
and that IntelliSense list to provide you that inline completion.
Here's a nice story here.
I'm going to do something with the password result,
and so watch IntelliCode pickup on
this variable name to
suggest the rest of the line that I'm going to write here.
Again based on addPasswordResult,
it's guessed from that variable name that I'm going to use by
user managers AddPasswordAsync method here, which is correct.
Again, tab, and so
here you can see that from the completions list,
we can actually steer the suggestion that we're going to get.
I'm going to scroll up and down here.
I'm going to hit, again
we can watch the inline completion change.
I want model.new password,
I hit Tab Tab to accept.
Let's complete the rest of this function here.
Again, we see on this new line that
Visual Studio IntelliCode inline completions
has guessed from the code that I'm writing before,
on the rest of this line here, tab.
We're going to use the add errors method.
Again, we can see the Grey texts here that's correct, tab, tab.
We're going to end this by returning the View tab, tab.
Cool. This marks the end of a set password method.
We've watched and IntelliCode's new inline completions.
Consider variable names and positions,
patterns in my code,
functions and nearby code,
and my IntelliSense lists selection,
to produce great inline suggestions
in gray texts to help me write my code faster.
I'm going to demonstrate a quick scenario in another file here,
so get all the details.
Here we have an empty class,
and so I'm just going to start typing my properties.
Again, we see that inline completions can pick
up on the code that we're writing to
produce these gray texts completions.
I've got one more property here, tab to accept.
Cool, so that brings us to the end
of our demonstration of Visual Studios,
newly enhanced inline completions in Visual Studio 2022.
Thank you for joining me and we're
looking forward to you enjoying this feature. Thank you.