Neither the browser add-on nor the VS Code extension will host a server for: PHP
, .NET
or NodeJS
. It will give you the reloading function, so you do not need to refresh the page every time you save.
In other words. If you just want the reload feature when working with .html files, then you do not need this add-on at all.
Need Help? Watch Video Tutorial
- Install VS Code from Microsoft. (code editor)
- Install VS Code Live Server. (extension to code editor)
- Install the browser add-on; Chrome or Firefox.
- Install and run a server on your machine: Servers and Frameworks
- Place your app on the server you want to use and open your project there.
- Enter the neccesary fields (screenshot below)
- Actual Server Address: is the address where your server is located and the port.
- Live Server Address: is the address where your VS code extension is running.
- Push the
Go Live
-button in your editor's statusbar. - Visit the
Actual Server Address
- Install VS Code from Microsoft. (code editor)
- Install VS Code Live Server. (extension to code editor)
- Install the browser add-on; Chrome or Firefox.
- Install and run a server on your machine: Servers and Frameworks
- Place your app on the server you want to use and open your project there.
- Enter the neccesary values (code block below)
- enable: whether it is enabled or not.
- baseUri: is the path to the folder you want proxy from. The path is relative to the workspace.
- proxyUri: is the address where your server (xampp or similar server) is located, and the port.
- Push the
Go Live
-button in your editor's statusbar.
.vscode/settings.json
{
// Mainly for static files
"liveServer.settings.useWebExt": true,
// This means that you change your real URL (current PHP url)
// to another URL (which Live Sever starts).
"liveServer.settings.proxy": {
"enable": true, // i. enabled
"baseUri": "/", // ii. workspace
"proxyUri": "http://localhost:80/workspace" // iii. actual address
},
}
Note: You need to stay on the new host that will be provided by Live Server.
- ExpressJS
cross-platform
- DotNet Core
cross-platform
- IIS
windows