So in this lecture, I just want to make sure that everybody understands how to use Visual Studio code
for this course.
So the first thing that we want to look at is making sure that we have the same extensions installed.
So if you click on these boxes over here and if you highlight over it, it'll tell you that it's extensions
or you can hit control, shift X at the same time and it'll bring up all your currently installed extensions.
And then you can also search for extensions.
So we're going to search for rust.
And this is the official rust extension for rust.
So this is the one that I went with.
But you can see that there's plenty more over here that you can install if you want to check out different
ones and find the one that is right for you.
But I am using this one just called Rust.
It's version 0.7.8 and that is the latest one.
And then once you install it, you can just restart Visual Studio code just to make sure that the install
has taken effect.
And once you've done that, you do have your rust extension completely installed.
So I provided all the source code in a zip file.
If you want to open it, all you have to do is unzip it and then you can go to file open folder.
I have mine on my desktop.
And then you just select folder and inside of here you will see all the source code for this lecture
in this folder, and it's important to make sure that you change directory into it.
So for me, it's just CD and then rest the complete guide and then just change direction and to change
direction, change directory and to any of the folders depending on what lecture you are on.
And then it'll run as normal.
And of course, the one that I picked happens to be of a
section to cargo run.
Did not find.
Oh, what do we have in here?
So we'll go to.
Hello.
And now we have our cargo file.
So now we can do cargo run.
So as you can see, as long as you change into the directory inside of the folders to the location where
your cargo file is, then you can start running cargo run and the project will compile successfully
for you.
So if you want to change folders because maybe you have created your own folder for writing the source
code from scratch, well you can close the folder by just going in here and selecting close folder and
then you can open up your.
Your own personal folder, which I created, one called Rust Project.
So we'll select it and as you can see.
My folder is currently empty.
So up here, in my version of Visual Studio code, which is the latest version, I update it every time
that there's an update.
You can toggle this panel down below and it'll bring up the terminal for you or you can hit control
J to toggle it on and off.
So in here we want to create a new project and we'll just call it Hello.
And now you see that cargo new created a new folder for us called Hello.
And we want to see the change directory into that folder and you'll see we have our cargo dot Tamil
and our source folder folder already created for us.
And now if you execute cargo run again, you see we have Hello World Executed, which is the intended
output for our templated new cargo package.
So hopefully this clears up anything.
And if you have any more questions, please ask them in the Q&A section.
But this is all you need to know on how to use the Visual Studio code ID for this course.
So enjoy the course.
And if you have any questions at any point, please ask them in the Q&A section.