Simple Auto Reload
This extension uses the DevTools protocol (available in most browsers) to auto reload a page after saving files.
It requires no browser extension or code changes.
Setup
Make sure your browser is running with remote debugging port enabled.
- Chrome:
google-chrome --remote-debugging-port=9222
- Android:
adb forward tcp:9222 localabstract:chrome_devtools_remote
- Opera:
opera --remote-debugging-port=9222
- Safari (iOS): Install and run iOS WebKit Debug Proxy
- Edge:
MicrosoftEdge.exe --devtools-server-port 9222
- Firefox:
firefox --remote-debugging-port 9222
Usage
Once the browser is running, use the command Auto Reload: select tab
to choose
which of the currently open tabs will be reloaded when saving. That's it. Next
time you save a file, that tab will reload.
If you want to stop reloading, run the command Auto Reload: stop
.
Remote Development Environments
The extension runs locally in the UI environment so is automatically fully compatible with VS Code's Remote Development options provided the browser is on the same machine as the VS Code UI interface.