Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabiospampinato/vscode-browser-refresh

Refresh the browser with a ⌘R, right from Code. No need to switch focus to it.
https://github.com/fabiospampinato/vscode-browser-refresh

browser extension refresh vsc vscode

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-browser-refresh), or run the following in the command palette:

```shell
ext install fabiospampinato.vscode-browser-refresh
```

## Usage

It adds 2 commands to the command palette:

```js
'Browser: Refresh' // Refresh the browser
'Browser: Force Refresh' // Force refresh the browser
```

It adds 2 shortcuts:

```js
'Cmd+R' // Refresh the browser
'Shift+Cmd+R' // Force refresh the browser
```

## Settings

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

## License

MIT © Fabio Spampinato