Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open in ApplicationNew to Visual Studio Code? Get it now.
Open in Application

Open in Application

Fabio Spampinato

|
23,790 installs
| (16) | Free
Open an arbitrary file in its default app, or the app you want.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open in Application

Logo

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, or run the following in the command palette:

ext install fabiospampinato.vscode-open-in-application

Usage

It adds 1 command to the command palette:

'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

{
  "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.

Example settings for custom application:

{
  "openInApplication.applications": {
    "*": "MyApp", // Default app to use when a more specific one for the extension isn't specified
    "html": "Firefox" // Always use Firefox for opening html files
  }
}

Example settings for custom applications:

{
  "openInApplication.applications": {
    "*": ["MyApp", "MyOtherApp"], // Ask which default app to use when a more specific one for the extension isn't specified
    "html": ["Google Chrome", "Firefox"] // Ask which application to use when opening html files
  }
}

License

MIT © Fabio Spampinato

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft