How to Install and Use Visual Studio Code on Ubuntu 22.04 LTS Linux (VS Code) | Ubuntu 20.04 LTS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys and welcome back in this video we are going to see how to install Visual Studio code in Ubuntu operating system so for that I'll just open my browser and then just search for visual studio code [Music] and then click on the first link which is from code dot visual studio.com [Music] and then on this page you can see we have different packages for different operating systems the first one is for Debian based Linux operating systems like Debian Ubuntu if you click on this Arrow then you can find more packages for different operating systems like Windows Mac OS and Linux and also you can download the Insiders version of the visual studio code anyways we are just going to install the stable version so I'll just click on this dot Dev link and then the installation file is going to download let the download be complete once it is downloaded you can click on show all downloads and then you can then you can see the folder in which the installation file has been downloaded then I'll just minimize all the windows and let's open files and then click on downloads because downloads is the folder where the installation file has been downloaded now the first way to install Visual Studio is by graphical user interface so we can just right click on the installation file and then click on open with other application and then from here we can click on software install and then if you click on the select button then the installation is going to begin and you can complete the installation using the graphical user interface and then the second way is by using terminal so for that I'll just open my terminal just press Ctrl alt plus d and the terminal is going to open up then we have to open the directory in which we have the installation file so I'll just write CD downloads forward slash and then the current active directory is downloads now type LS so that we can list out all the files that we have in this folder and from here we have to run or execute the first file that is code and has the extension dot Deb so I'll just copy the name of the file from here and then type sudo dpkg space hyphen I space then just paste the name of the file that we have copied and hit enter enter your password and again hit enter Then the installation is going to begin we don't have to do anything here after the installation is over we don't have to do anything else it's complete now if you want to check if the visual studio code icon has been added to the apps or not you can just click on this icon which says show applications just click on it and then you can find the visual studio code icon here just click on it and the visual studio code is going to open up now if you want to add a folder you can just click on file and then open folder and then you can browse to the directory where you want to add the folder and let's say I want to add a folder here so I'll just click on this create folder icon and let's say the name is SRC I'll just create it and then click on open and then it's asking do you trust the others of the files in this folder or just click on yes and you can see the SRC folder has been added to our Visual Studio code now it's all empty you can see if you want to add a folder within SRC you can do it from here or you can refresh the content of this folder collapse folders in Explorer or you can add a new file Also let's say the file name is demo so you can add any kind of file from here let's say it's a python file so I'll just write py and you can see the icon changing let's say it's a Java file or it can be a C file also then the next thing is that we can add extensions in the visual studio code so we can just click on this extensions and then you can see all the popular extensions that are available like python Microsoft C C plus plus or if you want to add other extensions you can search them from here if you want to add Java you can search it from here then let's come back to our Explorer and under the SRC let's create a file let's say demo.py which is a python file and as soon as we create the file the visual studio code is going to show recommendations for installing extensions related to the file that we have created so here we are getting recommendation for extensions which are for python so if you want to install them you can just click on install anyway let's get into this file that is demo.py and let's try to print something so I'll just print hello world then we can open the terminal in this current directory which is SRC so just click on Terminal in the menu bar and then click on new terminal and you can see the terminal has been opened up in this current directory now if you write LS that is to list the files and folders you can see we have this demo.py and if we want to run the file we can just type python3 demo Dot py but it's not returning anything since we have not saved the file so let's hit Ctrl s to save the file and let's run the command once again and this time you can see the file has been executed and hello world has been printed and you can see other icons that we have here on the left side that is for run and debug the codes or Source control if you want to create many versions of the application or program you are working on then this is for search if you want to search any files you can do that from here or you can just hit Ctrl F to open the search button and if you hit Control Plus F while you are in the Explorer the find is going to work in the Explorer and if you are in the file and then you hit Control Plus F then it's going to work within the file same goes for Control Plus H which is for find and replace these are just some few shortcuts if you want to learn about Visual Studio otherwise these topics are for another video and finally if you want to add the visual code icon into this menu bar which we have on the left side you can just click on this show applications icon then right click on Visual Studio code and then just click on add to favorites and it's going to be added in the favorite or the menu bar which we have on the left side all right now if you want to open the visual studio code from terminal we can do that just open your terminal and type CD space documents and then just type code and hit enter and the visual studio code is going to open up all right now if you want to open Visual Studio code within a specified directory let's say SRC since we have created a folder SRC inside documents folder and let's say we want to open Visual Studio code within the SRC folder so I'll just type CD SRC this is going to make the active directory as SRC then just type code space Dot and hit enter now the visual studio code is going to open up within this SRC folder so anyways I hope you liked the video this is all for this video I'll see you in the next video till then thanks for watching [Music]
Info
Channel: tanzTalks.tech
Views: 12,582
Rating: undefined out of 5
Keywords: tanz, tanzTalks, tanzTalks.tech, vs code, visual studio code, Windows, install, Code, Windows 10, Visual Studio, Visual Studio Code, Visual Studio Code on Windows 10, How to install Visual Studio Code, vscode, install Visual Studio Code, How to, Windows 8, Mac, Linux, VS Code, Ubuntu, Debian How to install Visual Studio Code on Ubuntu, Ubuntu 22.04, Ubuntu 20.04, install Visual Studio Code on Ubuntu, install VS Code on Ubuntu
Id: P-yk-AZpcQI
Channel Id: undefined
Length: 9min 25sec (565 seconds)
Published: Wed Sep 21 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.