+ 1
I put visual studio on one side of my screen and put my browser on the other. When I save the file. I launch it in the browser. And hit refresh. Or you can use the live server extension. It will launch the browser for you.
26th May 2022, 4:52 AM
Chris Coder
Chris Coder - avatar
+ 1
Install a Live server or HTML preview extension in your visual studio code. There's also an Auto save and Auto reload extensions that automatically saves your documents and reloads it in a web browser.
26th May 2022, 6:57 AM
Emms
Emms - avatar
+ 1
If you want the preview inside visual code. Then HTML Preview Extension mentioned by Emms is what you're looking for.
26th May 2022, 3:42 PM
Chris Coder
Chris Coder - avatar
+ 1
Your Mom When you use live server make sure your document is in side a folder. And make sure you saved the document. Then launch the live server. Your server Address will start with: 127.0.0.1 with the port number :5000. If the server is running and you do not see 127.0.0.1:5000 in the address bar. You may type it and then you will be able to browse the contents of your folder.
27th May 2022, 4:24 PM
Chris Coder
Chris Coder - avatar
0
Your Mom on windows I do, "alt+<(right arrow key)" for putting my vs code screen on right and web browser on left. Or you could do "alt+>(left arrow key)" for putting vs code on the left. Open your file in the web browser.
27th May 2022, 6:39 PM
Bhaveshsingh Pawar
Bhaveshsingh Pawar - avatar
- 1
What operating system are you using?
26th May 2022, 3:40 PM
Chris Coder
Chris Coder - avatar