I HAVE looked around to find the solution and some fellows already expressed the command:
{
"version": "0.1.0",
"command": "Chrome",
"osx": {
"command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
},
"args": [
"${file}"
]
}
after you press Cmd + Shift + p and entering Configure Task Runner
This thing is, I don't see that option, thus preventing me from completing this step. Perhaps I am ignorant as to how to work in this still.
Try specifiying a "taskName":
attribute in your build task. ie
{
"version": "0.1.0",
"taskName": "MyName",
"command": "Chrome",
"osx": {
"command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
},
"args": [
"${file}"
]
}
Download this: https://marketplace.visualstudio.com/items?itemName=peakchen90.open-html-in-browser . It is written in an asian language but it is very simple to handle, when your html file is opened, save it, right click and click the asian words. It will open in your default browser.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.