Visual Studio Code如何运行Html文件

2026-02-15 04:34:04

1、首先打开Visual Studio Code,点击左侧扩展图标

Visual Studio Code如何运行Html文件

2、出现插件搜索框,在框中输入 open in browser,然后点击右下角绿色按钮进行安装

Visual Studio Code如何运行Html文件

3、在需要打开的Html页面上,右键选择


Open in Default Browser(默认浏览器中打开)或者
Open in Other Browsers (在其他浏览器中打开)

Visual Studio Code如何运行Html文件

4、浏览器自动打开,就可以看到Html页面效果了

Visual Studio Code如何运行Html文件

猜你喜欢