Skip to content

Refresh the browser with a ⌘R, right from Code. No need to switch focus to it.

License

Notifications You must be signed in to change notification settings

montemartin/vscode-browser-refresh

 
 

Repository files navigation

Browser Refresh

Logo

Refresh the browser with a ⌘R, right from Code. No need to switch focus to it.

It's currently implemented using an AppleScript, which makes this extension macOS only. If you know how to do the same on Windows or Linux please submit a PR.

Install

Follow the instructions in the Marketplace, or run the following in the command palette:

ext install fabiospampinato.vscode-browser-refresh

Usage

It adds 2 commands to the command palette:

Browser: Refresh // Refresh the browser
Browser: Force Refresh // Force refresh the browser

It adds 2 shortcuts:

Cmd+R // Refresh the browser
Shift+Cmd+R // Force refresh the browser

Settings

{
  "browserRefresh.browser": "Google Chrome" // The browser to refresh
  "browserRefresh.delay": 0, // Delay after which ⌘R will be sent to the browser
  "browserRefresh.focus": false // Keep the focus on the browser
}

Contributing

If you found a problem, or have a feature request, please open an issue about it.

If you want to make a pull request you can debug the extension using Debug Launcher.

License

MIT © Fabio Spampinato

About

Refresh the browser with a ⌘R, right from Code. No need to switch focus to it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.4%
  • JavaScript 25.6%