Refresh Browser (VS Code extension)
Refresh your web-browser with ⌘R without switching from Code. Only works on macOS!
Why macOS only?
The extension relies on AppleScript to communicate with the browser.
Which browsers are supported?
Safari, Chrome and Chromium-based browsers, such as Edge, Opera etc. Firefox is not supported, because it lacks the AppleScript API. For Firefox and other browsers, use @fabiospampinatoʼs Browser Refresh extension.
How is Refresh Browser different to @fabiospampinatoʼs Browser Refresh extension?
Refresh Browser (this extension) communicates with the browser directly via the browserʼs AppleScript API. For this reason:
At the same time, it has limited browser support annd it canʼt “force refresh” the browser.
Another extension, @fabiospampinatoʼs Browser Refresh, uses AppleScript to simulate the ⌘R keystroke in the browser window, resulting in Code window losing focus for a fraction of a second. The keystrokes method has its advantages: it can be used to simulate the “force refresh” keystroke (Cmd-Shift-R) and it is more universal in terms of browser support.
I need “force refresh”. What can I do?
Keep your browsers console always open and disable caching. Alternative solution: use @fabiospampinatoʼs Browser Refresh extension.
Press Cmd-R or select
MIT License © Eugene Zuyev (firstname.lastname@example.org)