(upbeat music)
Tutor: Hello everyone. In this video,
I'm going to download and install
Visual Studio Code on Linux.
In this case, I am running Ubuntu 20.04 LTS,
as you can see up here on the left top corner.
Visual Studio Code is available
for lots of Linux distributions.
So first order of business, absolutely be sure
that your compiler tool chain has already been installed
and it's working.
You can check that by opening up a terminal session
and just typing G++-- version
and you should get some sort of display message
that says G++ was a version number and so forth.
If you get an error here
double check that your compiler is installed.
Go back to section two of the course
and refer to the videos there
where I show you how to install
your compiler tool chain on Linux.
So I'm assuming that that's installed
and it's all good to go,
the next step is to actually install Visual Studio Code.
Open up your favorite browser
and head over to code.visualstudio.com
and you'll see a page that looks like this.
There are lots of distributions
of Visual Studio Code for Linux.
So if you click over here on the download button
you can see we've got Debian, Ubuntu, Red Hat, Fedora
all kinds of different distributions. What I'm gonna do
is I'm gonna make it really easy on myself.
I'm assuming that if you know Linux
and if you're working with Linux,
you know how to use package managers,
you know how to install software.
So what I'm gonna do
is I'm gonna make it really easy on myself,
I'm gonna select the Snap Store,
that's gonna take me another page
where I can just click
install over here on the right top with this green button.
And I've got a couple of choices.
I can view it in my desktop store
which is this guy right there, my Ubuntu software
or I can install Snap if you like.
If you don't have Snap installed, you can install it.
So I'm just gonna view it in the desktop store.
I'm gonna choose my application, which is the Ubuntu store.
You can use Snap Store if you want.
I'll just open the link
and that's going to take me right here.
Let me minimize my browser window,
I don't need it anymore.
And now I'm just going to install, just gonna click install,
put in my password and that's it.
Now it's installing Visual Studio Code. It's done.
So what I need to do now
is basically just close up this window and run it.
So let me go down here
and you should see Visual Studio Code installed now,
there it is right here. Click on that.
And when Visual Studio first loads up
you'll get a screen that looks something like this.
It's a getting started page
with some information about opening files and so forth
and we'll do that in a little bit.
But before we do that
we need to install an extension, the C++ extension
which will allow Visual Studio Code to work with C++.
So what we wanna do is we wanna come over here on the left
and select these icons. This icon right here, extensions,
you wanna select that
and now you're gonna get a bunch of choices.
You can see that the installed extensions are zero
'cause I haven't installed anything,
I've just installed Visual Studio Code fresh out of the box,
so there are no extensions installed.
The one we want to install is this one right here
the C/C++ extension from Microsoft.
It should be under popular.
If you don't see it, you can type C++ in the search box
and press enter and then you'll see it right away.
So if you just select that,
this is the one you'll know
'cause it's this big circle with some purple,
white and black, and it says C/C++ Microsoft
with just over 20 million downloads
at the time of this recording. That's the one we want.
We want to select install,
and you'll see the installation
proceed down here on the right.
Once it's finished, we are good to go.
So we just give it a few minutes to finish,
don't interrupt it, just let it do its thing.
Okay, so it's done.
We'll close this up
and we will go back here to explore and we're good to go.
So the next thing we're going to do is
we're gonna create a folder
and inside that folder we're gonna create a project
which is gonna include a new simple C++ program
that will allow us to configure Visual Studio Code
so that we'll build, run, and debug that file.
So I'll see you in the next video to do that.