(upbeat electronic music)
(wind whooshes) (keyboard keys clack)
Frank: Hello everyone.
So in this video what we'll do is we'll download
and install Visual Studio Code on Mac,
and then we'll install a couple
of extensions as well to get it going.
So open up your favorite browser
and go to code.visualstudio.com.
Or you could just type Visual Studio Code
and in Google and press Enter,
and it'll take you there.
So you're gonna get to a page, something like this.
This is a Microsoft product, so we're here on this website.
And what you wanna do is you can click right here
and download the Mac Universal Build.
I'd rather not do that.
I'd rather download the specific build for my Mac.
As many of you know, Mac now comes in the Apple silicone
and Intel version, so may as well grab the one you need.
And Visual Studio Code supports both, which is really nice.
So right now I'm on an Apple silicone iMac,
so I'm just going to select download over here on the right.
And you can see here where the Mac stuff is.
You can download the Universal build,
which will run on both,
the Intel build, or the Apple Silicon Build.
So you know what you've got.
If you've got a Mac,
like I said, I've got the Apple silicon right now,
so I'm just gonna click
on here and we'll get the download coming.
And I'm just gonna open it with the archive utility.
You can save it and then open it there as well.
So I'm just gonna click OK
and give it a minute to download.
And once it's downloaded it should open up.
There's the archive utility,
and it opened up in my other window.
So let me drag that over here,
get that over from my other monitor.
And you can see it's downloaded and extracted it.
So all you want to do now is just wanna click
on Visual Studio Code here,
and drag it over to your applications.
Just like that, that's it. (computer beeps)
Now what we want to do is we wanna run it.
So I'm just gonna click on applications,
and scroll down until you find it.
And it is right there.
So I'm just going to run that.
Of course, first time you run it on Mac,
depending on your security settings
and your privacy settings,
you may get a message like this,
or you may not even let you run it
and you'll have to go and let it run.
But if again, if you're a Mac user, you know what to do.
I'm just gonna select Open and Visual Studio Code opened up.
Let me enlarge this a little bit.
And we've got this big old screen here
with nothing going on.
We've got some options over here on the left side,
and I'm just gonna close this little guy up right here.
This font is pretty small,
so I'm just gonna press Command+Plus
to make everything a little bit bigger for you guys.
And you can come through here and see what's going on.
You can pick a theme.
I'm just gonna stick with this dark theme.
There's a lot of themes that you can choose.
It talks about coding in different programming languages,
switching from other editors and so forth.
I'm not gonna do any of that.
I'm just gonna keep it default.
So I'm just gonna close this little window up right here.
What we have to do is we have to tell Visual Studio Code
that we are gonna do C++.
And the way we do that is we add an extension.
And this bottom icon right here is the extensions.
And what I want to do is I want to select that,
and you can see that I've got nothing installed
right now, obviously,
'cause I just installed VS Code.
So there are no default extensions installed.
But what I want to do is install the C++ extension.
Right here, where it says popular ones, it's right there.
That's one of the real popular ones.
If it doesn't show up here for you,
you could just type C++ up here
and press Enter and it will find it.
And it's this guy right here.
If you just select it,
and this is what it's supposed to look like.
You have this purple circle here with C++,
it says Microsoft, it's got over 20 million downloads.
I don't know how many downloads it's gonna have
when you guys watch this video,
which may be a long time from now, maybe.
So this is the one we want to install.
And in order to install it,
all we need to do is just click Install right here,
and it says installing and it's doing it down here.
Just let it do its thing.
And once it's finished,
we are done installing that extension.
So we can erase that.
And the next one we want to do is we want
to type codelldb, sorry,
and this is the one that we want to install next.
These are the only two extensions
that we're going to install.
There are a lot of other ones out there.
You've got CMake, CodeRunner, there's a whole bunch
of them that just make things a lot more complicated
than they need to be.
So this is the one that allows us to run the LLDB debugger,
which is the debugger that we're going to be using
in this class.
And it'll let you run that
in Visual Studio Code, and it works really well.
And it also supports Apple silicon, which is pretty cool.
So if you've got your Intel version
or the Apple Silicon version, that will work.
So I'm just gonna select it, and you can see,
if you look at the Changelog,
you can see that right there where it says new,
on version 1.6.2, added support for Apple silicon.
So that's pretty cool.
So if you've, again, if you've got Intel or Apple Silicon,
this'll work just fine.
So I'm gonna select Install here as well.
And just let it do its thing,
be patient, don't interrupt it.
And that's it.
I'm gonna close this up
and I'm going to go back to my Explorer right here.
What we're gonna do now is we're gonna open up a folder,
we're gonna set up a little folder structure,
and then we're going to configure C++
in Visual Studio Code so that we can build and run programs.
So I'll see you all in the next video.