See browser changes instantly when saving HTML or CSS files without manually hitting refresh.
Preview a website on your phone or another device by connecting to the local server over your network.
Run a local HTTPS server for pages that require a secure context to function correctly.
Configure a proxy to test pages that need API requests routed through a backend server.
Live Server is a Visual Studio Code extension that starts a local web server for your project and automatically refreshes your browser whenever you save a file. This means you can edit an HTML, CSS, or JavaScript file and see the result in the browser immediately without manually hitting the refresh button. It is aimed at people building websites who want a faster feedback loop while working. Starting the server takes one click on a "Go Live" button that appears in the bottom status bar of VS Code, or you can right-click an HTML file in the file explorer and choose to open it with Live Server. Keyboard shortcuts are also available. Stopping works the same way, through the same status bar button or shortcut. The extension supports customizing which port the server runs on, which directory it treats as the root of your project, and which browser it opens. You can also set it to ignore certain files so changes to those files do not trigger a reload. For setups where you want to view the site on another device on the same network, such as checking how a page looks on a phone, the extension supports connecting from other devices over the local network. HTTPS is supported for cases where your code needs a secure context to work correctly. There is also CORS support and proxy configuration for more complex setups. Multi-root workspaces, a VS Code feature where you work on multiple separate folders at once, are supported. The extension is installed from the VS Code Marketplace and requires no external tools. It is MIT licensed. The last documented release was version 5.6.1 in April 2019, so active development appears to have slowed, though the extension remains widely installed.
← ritwickdey on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.