28 December 2021

How to view an HTML file in the browser with Visual Studio Code

 Step1: Open Visual studio code tool


 Step2: Click on Open folder and select HTML files folder


Step3: Then open HTML file "TestFile.html" from folder


Step4: Then go to Extensions in VS Code and install "Open in Browser" extension ass below image.


Step5: After install then go to HTML file and right click on code and we will get "Open in Default Browser" option. then select that. it will show your html file output in browser.




No comments:

Post a Comment