221k views
5 votes
How to make live server work in vs code

1 Answer

6 votes

Final answer:

To make Live Server work in VS Code, you need to install the Live Server extension and start a live server.

Step-by-step explanation:

To make Live Server work in VS Code, you need to install the Live Server extension from the VS Code marketplace. Here are the steps:

  1. Open VS Code and go to the Extensions view by clicking on the square icon on the left sidebar or by pressing 'Ctrl+Shift+X'.
  2. Search for 'Live Server' in the extensions search bar and click on the 'Install' button for the Live Server extension.
  3. Once installed, you will see a 'Go Live' button in the bottom-right corner of the window. Click on it to start a live server.

This will launch a local development server that runs your code and allows you to access it in your browser at a specific port. Any changes you make to your code will be automatically reflected in the browser.

User Eben Roux
by
8.2k points