Czy można dodać Chromium do VSC, aby otwierać przez te przeglądarkę pliki html bezpośrednio z Visual Studio Code? Sprawdziłem wszystkie 5 rozszerzeń typu Open in Browser i żadne nie otwiera Chromium. Przerobiłem trochę ten plik tasks,json i też nic nie ruszyło.
https://weblog.west-wind.com/posts/2017/oct/13/opening-a-web-browser-with-an-http-url-from-visual-studio-code
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "msbuild",
"args": [
// Ask msbuild to generate full paths for file names.
"/property:GenerateFullPaths=true",
"/t:build"
],
"group": "build",
"presentation": {
// Reveal the output only if unrecognized errors occur.
"reveal": "silent"
},
// Use the standard MS compiler pattern to detect errors, warnings and infos
"problemMatcher": "$msCompile"
},
{
"taskName": "Open in Chromium",
"isBuildCommand": true,
"command": "chromium",
"windows": {
"command": "/usr/bin/chromium"
},
"args": [
"http://localhost:5000/${relativeFile}"
]
}
]
}