Installing vs code is easy, just visit vs code's website and get the installer here: https://code.visualstudio.com/download
Are you Using VS code on your laptop or pc?
Comment Below !
var s = "html > < body > <!-- // --><!-- Placeholder for VS Code generated HTML / --> < script src = "app/app.js" ></ script > </ body > </ html> "; alert(s);
Now that's over with let's get into how to create a web server with vs code! You're going to want to drag and drop 2 files into vs code they are index.html and app.js. Open vs code's "settings" by right-clicking on the file name.
Click on settings, then go to "ignored files" and add ".git":
Then you want to click on "open vs editor window here", so vs code knows how to run your program:
Now you can edit your index.html file! You can also see that vs code has already added some stuff for us since it opens automatically:(but we're not going to use this yet)
VS code will try to help you out with minimal errors by telling you that vs code has attached itself to your app.js file, it also tells you that vs code's debugger is running on port 9229.
To run vs code, click on the vs code running tab and click "F5" or hit "F5". To debug HTML files, go under Tools/HTML sub vs sub ctrl+p sub debug or hit F5 :
You can edit index.html, app.js, and any other files in there! Also if you want vs code to automatically open this folder after closing it just do:
Check out the download facebook
Right Click-> Open Folder Here Laptops