Home > Development Tools > VSCode > body text

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

王林
Release: 2019-12-12 17:00:50
Original
4248 people have browsed it

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"
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template