This extension allows you to open links in the terminal with a specific app or browser, depending on the URL. For example, I use it to always open Google's auth site with Chrome:
Install from the Visual Studio Marketplace.
This extension contributes the following settings:
terminalOpenWith.mappings
: An array of mappings:- Simple url-app mapping:
{ "glob": "https://g.co/sc", "app": "chrome" }
- Or with wildcards and arguments:
{ "glob": "http://localhost**", "app": "firefox", "args": ["-private"] }
- Simple url-app mapping:
A glob can use any of the following wildcards:
?
: any filename character (excludes directory separators/
and\
)*
: zero or more filename characters (excludes directory separators/
and\
)**
"globstar": zero or more path characters (includes directory separators)
- Currently only supports
chrome
,edge
,firefox
,code
, ordefault
.
- Create a Personal Access Token with Marketplace:Manage scope on dev.azure.com
- Run
vsce login lionello
followed byvsce publish minor
Updated NPM dependencies.
First release (no changes.)
Added extension icon: External Link by Colourcreatype from Noun Project
Initial pre-release of terminal-open-with
.