How to use live server

Hello harshit, i eant to know when we download the live server and after that we arite some html code,do we have to just click on " Go live" option and then it will run automatocally?

Or I have to save the page and then click on " Go live" option?

1 Like

@yj2175777
You are correct, you do need to save the HTML file before clicking on the “Go Live” option in the Live Server extension for Visual Studio Code.

When you make changes to your HTML code in Visual Studio Code, those changes are saved to the file on your local computer’s hard drive. However, the Live Server extension only works with saved files. So you need to save your changes before clicking on the “Go Live” button to launch the Live Server and see your changes in a web browser.

To save your changes in Visual Studio Code, you can either use the keyboard shortcut “Ctrl+S” or “Cmd+S” on a Mac, or you can go to the “File” menu and choose “Save” or “Save As”. Once you’ve saved your changes, you can click on the “Go Live” button in the bottom toolbar to launch the Live Server and view your changes in a web browser.

1 Like

@rrnayak2609 Thanks for helping him out.

1 Like