Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>URLParserToolNew to Visual Studio Code? Get it now.
URLParserTool

URLParserTool

kendent

|
230 installs
| (0) | Free
url paser tool
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

UrlParserTool

说明

该工具用于解析url参数,将参数作为类型填充到对应文件的对应接口中

(1) 工具会首先读取根项目根路径下的 配置文件 url-util-config.json 文件内容如下:

{
  "urlTypeCenter": "UrlParams",
  "urlTypeFilePath": "packages/src/utils/url/type.ts"
}

读取其中的urlTypeCenter和urlTypeFilePath

urlTypeFilePath 必须固定包含有一个导出的urlTypeCenter借口,文件内容如下:

export interface UrlParams {

}

使用

(1)填充单个类型:选中参数名称后 Command+option+U,会自动将选中内容插入到urlTypeCenter对应的接口中 (2)批量解析: Command+P 输入:>urlparser 在弹出的输入框中按照指令输入:url,会自动进行填充

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft