How to view an HTML file in the browser with Visual Studio Code

前端 未结 23 1702
[愿得一人]
[愿得一人] 2020-11-28 17:43

How can I view my HTML code in a browser with the new Microsoft Visual Studio Code?

With Notepad++ you have the option to Run in a browser. How can I do the same thi

23条回答
  •  伪装坚强ぢ
    2020-11-28 18:04

    Here is the version 2.0.0 for Mac OSx:

    {
      // See https://go.microsoft.com/fwlink/?LinkId=733558
      // for the documentation about the tasks.json format
      "version": "2.0.0",
      "tasks": [
        {
          "label": "echo",
          "type": "shell",
          "command": "echo Hello"
        },
        {
          "label":"chrome",
          "type":"process",
          "command":"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
          "args": [
            "${file}"
          ]
        }
      ]
    }
    

提交回复
热议问题