Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>wgl-xml-toolNew to Visual Studio Code? Get it now.
wgl-xml-tool

wgl-xml-tool

王国梁

|
4 installs
| (0) | Free
xml工具,主要显示xml结构
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WGL XML Tool

VS Code 扩展,在侧边栏显示 XML 文件的树形结构大纲。

功能

  • 在 Explorer 侧边栏展示 XML 元素和注释的树形结构
  • 点击树节点可定位到编辑器中对应位置
  • 支持层级控制(默认显示 4 层)
  • 支持内容筛选(只显示节点 / 只显示注释 / 全部显示)

使用方法

  1. 打开任意 .xml 文件
  2. 在 Explorer 侧边栏找到 WGL XML TOOL 视图
  3. 展开树形结构查看 XML 大纲
  4. 点击节点跳转定位

设置

在 VS Code 设置中搜索 WGL XML Tool:

  • wglXMLTool.maxLevel:树视图最大显示层级(默认 4,最小 1)
  • wglXMLTool.displayMode:显示模式(nodes | comments | both,默认 both)

节点标签说明

  • 元素节点:NodeName[第一个属性值],后缀为子节点数量
  • 注释节点:注释:注释内容
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft