Skip to content

Instantly share code, notes, and snippets.

@daniel08s
Created Sep 17, 2018
Embed
What would you like to do?
VS Code - Tasks to open files in browser
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
// Open in Chrome
{
"label": "Open in Chrome",
"group": {
"kind": "build",
"isDefault": true
},
"type": "process",
"command": "Chrome",
"windows": {
"command": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
},
"args": ["${file}"]
},
// Open in Firefox
{
"label": "Open in Firefox",
"group": {
"kind": "build",
"isDefault": true
},
"type": "process",
"command": "Firefox",
"windows": {
"command": "C:/Program Files/Mozilla Firefox/firefox.exe"
},
"args": ["${file}"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment