Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiospampinato/vscode-open-in-application
Open an arbitrary file in its default app, or the app you want.
https://github.com/fabiospampinato/vscode-open-in-application
application custom extension external open vscode
Last synced: 2 months ago
JSON representation
Open an arbitrary file in its default app, or the app you want.
- Host: GitHub
- URL: https://github.com/fabiospampinato/vscode-open-in-application
- Owner: fabiospampinato
- License: mit
- Created: 2018-03-13T15:26:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T18:34:12.000Z (11 months ago)
- Last Synced: 2024-05-01T12:39:25.712Z (9 months ago)
- Topics: application, custom, extension, external, open, vscode
- Language: TypeScript
- Size: 1.4 MB
- Stars: 17
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
README
# Open in Application
![]()
Open an arbitrary file in its default app, or the app you want.
This is customizable: you can provide a custom app for each extension, or even multiple apps for an extension and then manually pick the one to use.
## Install
Follow the instructions in the [Marketplace](https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-open-in-application), or run the following in the command palette:
```shell
ext install fabiospampinato.vscode-open-in-application
```## Usage
It adds 1 command to the command palette:
```js
'Open in Application' // Open the current file in its default app, or the app you want
```You can also reach this command with a right click in the explorer.
## Settings
```js
{
"openInApplication.applications": {} // Map between extensions and applications
}
```The actual application's name to use is OS-dependant, for instance if you want to open Firefox under Ubuntu you have to use "firefox" (lowercase) in your settings. We use the [open](https://www.npmjs.com/package/open) utility under the hood, everything that works with it will work here.
Example settings for custom application:
```js
{
"openInApplication.applications": {
"html": "Firefox" // Always use Firefox for opening html files
}
}
```Example settings for custom applications:
```js
{
"openInApplication.applications": {
"html": ["Google Chrome", "Firefox"] // Ask which application to use when opening html files
}
}
```## License
MIT © Fabio Spampinato