How to Create New Project in Visual Studio Code (2024) - VSCode Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to this video guys in this video I will show you how to create a new project in Visual Studio code I will show you some shortcuts some tips and I will uh tell you how you can open project for anything in Visual Studio code be it python Java HTML CSS anything okay let's get started first open your Visual Studio code and you will see the screen now if you already have a project then you'll probably not be watching this video so let's just continue with this so right now you can see in start there is a new file open file open folder and so on what you can do is you can directly create a new file so I'll show you an example for HTML and then after that I'll show you an example for python uh in any way it's the same for both so click on any of these options now you get text file python file options now I'm getting python file option because I have python interpreter already installed in your case if you don't have interpreter for that specific language python Java PHP nothing will be shown now what you can do is you can just click on text file because that is builtin right if you click on text file this file will be created now let's say we want to make this an HTML file for HTML file you don't need to install anything extra so uh I'll quickly show you how you can do that so if I write HTML and let's close this and let write this is text here now hit contr s to save it now where do you want to save it let's say I want to go to desktop and I want to save this as index.html right HTML is the extension click on Save now this file is saved now if I go back to my desktop and hit refresh as you can see that file is created now if I double click on this it will open in browser and it is sh this is text so basically we have created a project in vs Studio code but this is very primitive way and let me step above this and let me show you how you can do this a bit more professionally okay so you can directly choose new file and create that file and save that file as html. py or. PHP and that file will be saved in that specific format but that is not how we should do it so first what we should do is let's say we want to start a new web development project right click on file and then you need to click on open folder and where do you want to create that project so let's say I want to create it in the D and let's say yeah this is where I want to create it so you can just do select folder but that will select this G drive and not any specific folder inside it right so what you can do is go inside any specific folder that you want and let's right click here and click on new and then folder let's call it vs Cod project one and then once the folder is created select that folder and click on select that folder select folder okay so as you can see here okay you'll see this message do you want to trust uh do you trust the authors of these files in this folder click on yes and this is our folder right this is our project so you can click this button that is new file and your new file will be created again I'll call it index.html to rename it you can just right click again and click on where is it rename HTML okay and here again you can write HTML code as we have already done and let again say file right and what you can do is to see this folder in your Explorer you can just right click and click on where is it reveal in Explorer or the shortcut is shift alt R right so let's just select this and press shift alt and R and as you can see this file is created inside this folder so we have our D drive and then we have projects and inside projects vs Cod project one is there and here we have our index HTML and this is how you can create a new project in Visual Studio code now let's say if you have if you're are doing this for a programming language like PHP python or Java how can you do it so the process of creating the project folder or opening a folder is same now if you are using a language like python Java what you need to do is besides Visual Studio code first you need to download and install the compiler or interpreter for that specific language you can check the links in the description I show you how to set up PHP Python and Java in Visual Studio code and once that is installed what you need to do is you need to go to extensions and install the specific extension for formatting and for autocomplete of that specific language so that extension for example if I type python there is examp there will be python extensions now these extensions help you to format code properly you know autocomplete classes autocomplete functions and so on uh once The Interpreter or compiler for the specific language is installed just install this extension for your specific language and then create a new folder by file open folder and what we did right now with this thing okay instead of HTML then you can create for any other programming language so this is how you can create new project in Visual Studio code if you have any questions let me know in the comments below
Info
Channel: The Code City
Views: 14,425
Rating: undefined out of 5
Keywords: create new project vscode, create new project visual studio code, vscode new project, vscode project, open a project in visual studio code, open project vscode
Id: 2wsIdBi5TPY
Channel Id: undefined
Length: 5min 44sec (344 seconds)
Published: Thu Feb 08 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.