[MUSIC].
>> Hello everybody and thank you so much for joining me today.
My name is Cody Buyer and I'm Program Manager
on the Visual Studio for Mac team here at Microsoft.
Today, I'm going to share
the improvements that we've made to IntelliSense within
Visual Studio for Mac using
the new editor that came out in a dot one.
So to get started,
we're going to look at the project we have
here and I noticed that I have one build air.
That's too bad but let's see what that air is.
By double-clicking here, I'm taken to
this mock items list
and I see that I missed it definition for people.
So I'm going to go into my items.cs.
Now, that I'm within items.cs,
I know that I need to create a list and
the list needs to contain persons.
So I'm going to leave my carat into the class, type in public.
I see that I don't have a list within
my completion window and I don't
necessarily remember the full import for this.
If it's System dot generic dot, I can't remember.
So what I'm going to do is enable a new feature
in VS for Mac called show import items.
To do this, we'll open up the preferences and
navigate to the IntelliSense section under text editor.
By clicking on "Show import items",
I now have the ability to see
the different name spaces that's available to me within dot net.
So let's go back and type in list again.
So now you can see that I have
a full completion window of
all the different libraries that I can call in,
including system dot collections dot generic.
So by clicking here,
I have the import of system dot collections
dot generic here and I can create the list that I need.
Perfect. I now have
the list of persons available and I can build my project.
But there are a few other features you may have
noticed while I was typing in my list.
All right. So that build succeeded and another bug squashed.
But let's take a step back and see some of
the other features that we had
available to us in Visual Studio for Mac,
using our new IntelliSense engine.
I'm going to delete what I added and I'm
going to call the completion list up again.
So again type in public, list,
and here you can see that we now have
some buttons down here that are new to Visual Studio for Mac.
These allow you to filter the completion window by type.
So for example, if you only want to see classes you can click on
"Classes" and this limits the completion list
to only including types of classes.
For the more you can do this by enums,
you can do this by delegates or
any other type filtering that you may need.
Furthermore, this is possible by using keyboard shortcuts as well.
So if I'm typing it in the list and I only want to see classes,
I can say option C and limit this to only classes.
When you combine the ability to filter
your IntelliSense list with the ability to
include all of the different types of imports available to you,
you have a much more powerful approach
to use the IntelliSense in Visual Studio for Mac.
In addition to these features,
we also have much improved performance within
the IntelliSense engine of Visual Studio for Mac.
This means that not only can you have
more powerful features but also
your depletion lists will populate quickly and
your completion list will appear immediately.
Today we learned about the improvements
IntelliSense within Visual Studio 2019 for Mac.
This included better performance in addition to
new features such as type filtering and showing import items.
To learn more, please visit our documentation site at
aka.ms/vsmacdocs Or stay tuned for the next video in our series.
Thank you. [MUSIC]