Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Live Share and Live Server

We are using VS Live Share inside Visual Studio Code and the person who joined cannot open a shared HTML file with the Live Server extension. It says: Cannot GET .../index.html. Does Live Server only work with "local files"? There is also no option to open the shared HTML file in the file system and to open it that way. Help would be nice as quick as possible.

like image 593
Isak Avatar asked Oct 23 '18 07:10

Isak


Video Answer


1 Answers

1-press the live share extension icon in the sidebar.

2-inside session details hover over shared servers sub-category.

3-an electrical plug with a green plus sign will show, press on it and an input field will pop up.

4-inside the input field write your localhost port like this e.g: localhost:5500 and press enter.

you can find the number of your port from the bottom right of vs code if you have a live server running. it will look like this: Port:5500.

once you do this a notification will automatically show in your partner's vs code to open the shared live server.

img

like image 100
Ihab Avatar answered Sep 21 '22 07:09

Ihab