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

前端 未结 23 1717
[愿得一人]
[愿得一人] 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:06

    In linux, you can use the xdg-open command to open the file with the default browser:

    {
        "version": "0.1.0",
        "linux": {
            "command": "xdg-open"
        },
        "isShellCommand": true,
        "showOutput": "never",
        "args": ["${file}"]
    }
    

提交回复
热议问题