for Visual Studio Code Visual Studio Marketplace
Splits the editor, opens a new panel with your website
###Install: Launch VS Code Quick Open (Ctrl+P), paste the following command, and type enter.
ext install mixliveserver
###How to use:
-
Set the
rootPath
configuration variable to your project root, where yourindex.html
is located, this has to be a RELATIVE PATH from where your project file is, if you have a folder for your project has to be inside there in an export folder or html folder etc. example: ../build/index.html -
Open any source file before running
-
Start the server pressing
F1
orCommand Palette
and run commandStart live server
This can be set in User Settings
or Workspace Settings
.
{
"mix.rootPath": "build/html5", // has to be a relative path
"mix.port": 8181
}
It has to be a RELATIVE path from where your project file is, if you have a folder for your project has to be inside there in an export folder or html folder etc.
Enjoy!