Home  >  Article  >  Development Tools  >  How to use vscode to open a browser to view html files

How to use vscode to open a browser to view html files

王林
王林Original
2019-12-12 17:00:504023browse

How to use vscode to open a browser to view html files

First press Ctrl Shift P on the interface to display the command panel, enter ctr, and select [Task: Configure Task Runner]

How to use vscode to open a browser to view html files

Then select [Others], you can see the default configuration

How to use vscode to open a browser to view html files

The last modification is as follows (delete one of the lines):

{
    "version": "0.1.0",
    "command": "Chrome",
    "windows": {
        "command": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
    },
    "isShellCommand": true,
    "args": ["${file}"],
    "showOutput": "never"
}

After saving, open the html file and press Ctrl Shift B will open the browser.

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of How to use vscode to open a browser to view html files. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn