Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Web File ViewerNew to Visual Studio Code? Get it now.
Web File Viewer

Web File Viewer

houser qu

|
3 installs
| (0) | Free
Open .web files as webviews with configurable URLs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Web File Viewer

一个 VS Code 插件,打开 .web 文件时自动显示为网页,无需跳转浏览器。可以方便的在项目文件中管理文档、使用说明等页面地址,让工作在 VS Code 中更聚焦。

使用方法

方式 1: 空文件快速创建

  1. 创建一个空的 .web 文件
  2. 打开文件时会提示输入 URL
  3. 输入 URL 后自动保存并在当前文件标签页中打开网页

方式 2: 直接打开

  1. 创建一个 .web 后缀的文件
  2. 文件内容为 JSON 格式:
{
  "url": "https://www.example.com"
}
  1. 打开文件,会自动显示网页

编辑 URL

  • 方式 1: 编辑器中打开 .web 文件,点击右上角编辑图标,在弹窗中编辑 url
  • 方式 2: 直接编辑文件 JSON 内容

数据存储格式

.web 文件使用 JSON 格式:

{
  "url": "网页 URL 地址"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft