Install VS Code on Ubuntu - The Easiest Way in 2023
21K views
Dec 21, 2022
Learn how to install VS Code on Ubuntu with our complete step-by-step beginner tutorial. We show you 2 ways of installing Visual Studio Code! Article: https://www.ceos3c.com/web-development/install-vs-code-on-ubuntu/
View Video Transcript
0:00
Hey guys, what's up everyone? Welcome to a new video. In this short video I'm going to show you how to install VS code on Ubuntu
0:07
I'm running Ubuntu desktop 2204.1 LTS right here it's a fresh installation. There is nothing installed. It's completely fresh
0:17
and we actually have two ways on how to install VS code on Ubuntu
0:22
And as always guys we provide a written article that goes along with our video
0:26
So if you pull up that article that helps you to follow along through the video
0:30
content of this video. Now don't be distracted by AstroVos code setup. This is just all of our
0:35
instructions on how to install VES code on all of the different systems. Once you are here
0:40
just go to the table of contents and click on install Vs code on Ubuntu. And once you are
0:46
there you find step-by-step instructions. As I said, there are two ways. We are first
0:50
going to cover the easy way and then we are going to cover the way on installing VS code
0:56
inside of your or using your terminal. There is not really an advice. or disadvantage over one or the other method
1:03
We are going to start with installing your Vs code on Ubuntu using the Ubuntu software center
1:09
To do that, just click on the left navigation or sidebar, whatever you call it in Ubuntu
1:16
and click on the Ubuntu software center, then click on the search icon on the upper left corner
1:20
and just type in Visual Studio. Once you type that in, you can click on this button
1:27
and click on the install button here. Once you install button here, Once you install that you can open up your app menu type in code and this will open up VS code for you or give you the icon to click on it and then VS code will launch Now I not going to install it that way because I still going to show you the other way as well
1:47
Again if you have chosen the software center way of installing it perfectly fine you don't need to do anything else
1:52
If you do need however to install it out of some reason through the terminal, I'm going to show you how to do that as well
1:59
Now open up a terminal by pressing the Windows key or the app menu here and typing in terminal or you just click on terminal here
2:05
It's the terminal icon. And then I need to make this probably a lot bigger for you guys
2:12
You can actually see something. There we go. And then I'm going to copy and paste the exact syntax that I have in the written article
2:19
So you can go and copy and paste that too if you want. So first, we are going to paste the first command in here, which is installing some dependencies
2:29
What is my password? I always mix that up. Let's see if I get the right one
2:34
this doesn't look right so it's the other one okay there we go now this is installed and updated then we do the second command I'm gonna
2:43
paste that in here that's basically downloading the Microsoft GPG keys and then next we're going to install them and add some permissions
2:53
this is installing the Microsoft GPG keys and then we are going to update our
2:59
sources list this is our apt repository as you can see it's copying that
3:04
or echoing this inside of this apt sources list file and adding the Microsoft official Microsoft repository to it
3:14
Once we hit enter, that's done as well. And then we can go ahead and paste this last command which is removing the packages that we don need anymore Once we have that done we go on to the second step here which is
3:28
installing the transport headers for HTTPs. They are not installed per default, so it's going to quickly install that and pull that down
3:37
There we go. Okay, now we can do pseudo-apt update to update our repository and as you can see
3:45
it's already including now the Microsoft and this is again this is the official
3:49
Microsoft repo you can check that out in the documentation it's packages dot
3:53
Microsoft com forward slash repos 4 slash code now the beauty of this is you now have
3:58
the official Microsoft repo tied into your app repository and every time in the
4:02
future you run pseudo app update and upgrade will also automatically upgrade your
4:07
VS code installation and always make sure it's on the latest version to install
4:12
VAS code on Ubuntu using the terminal we just do pseudo app install code and it's probably going to download a bunch of files so it's 400
4:20
megabytes going to quickly let that finish. Alright the installation has finished. Now you have two ways of launching
4:27
Vs code. You can either open it through the app menu as I've showed you before and
4:31
if you type code in here you will find Visual Studio code or on the other way you can
4:36
also just run code by typing code inside of your terminal and this also launches
4:43
Vs code, let's quickly check if we are in fact on the latest version
4:47
So I'm going to go to help about and it should be 174.0
4:52
This is the latest version from one week ago. So we have the latest version of Vs code installed
4:58
Now one more thing I want to quickly show you guys which is more of a tip not really related to installing it but if you working on Ubuntu and you doing web development or anything in the console you working with files and stuff you can just let say we create a
5:11
directory called temp we see into the temp directory then we're gonna create a
5:16
file say test.p.p. and that can be empty but now you can see you're in the
5:21
temp folder and if you just type code space dot inside of this folder
5:27
V-Scode will automatically open that fold inside of Visc code for you
5:32
So you don't need to really open VOS code and navigate through your file structure
5:36
you can directly open that up. And just make sure to trust the orders
5:40
That's always like a security message here. And I always tick that box and I say
5:44
yes, I trust the orders. And then you can see we have the test PY file open here. Okay
5:52
That's it guys. That's it for this video. If you like those rapid fire videos
5:56
tech instructional, make sure to subscribe to the channel. There will be a lot of new videos coming out in the future
6:02
And if you look for longer form content and videos, make sure to follow at Stefan Rose on Twitter and on YouTube
6:10
which is our long format content channels. And this is the channel for Quick Tech Instructional Videos
6:17
Thanks for watching, guys. Hope to see you back in the next one
#Computer Education
#Software