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

toPage

youjiti-w

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

toPage README

一个基于dva的通过url路由跳转到对应文件的插件

在vscode配置setting.json添加:

"toPage": {
  "routerConfig": [ // 一个项目一个配置对象
    {
      "projectPath": "/Users/xxxxx/Desktop/xxxxxxx", // 项目绝对路径
      "routerPath": "/src/config/routers.xxxxx.ts", // routers文件相对路径
      "routerName": "routerConfig", // 导出的router变量名
      "prefix": "/app/xxxxx/xxxxx", // 路由前缀 可选
      "alias": "/Users/xxxxx/Desktop/xxxxxxx/src" // 路径别名指向的绝对路径
    },
    ...
  ]
}

使用方法: 在vscode执行toPage命令,输入url路由就能跳转到对应文件
Enjoy!

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