Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>lazy-router-transformNew to Visual Studio Code? Get it now.
lazy-router-transform

lazy-router-transform

dasenge

|
28 installs
| (0) | Free
这个是一个快速将react组件转换为路由懒加载的工具
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode小插件,用于将component:xxx转化为component:lazy写法

使用说明:

1.在编辑文本的时候点击右键,显示菜单:

image-20230927175549384

2.或者是在文件管理中点击右键显示菜单:

image-20230927175616397

3.每次转换前默认是不会提示是否确认覆盖当前文件,如果需要这个提示,可以按照如下操作,打开:

确认弹窗提示位置

4.操作效果如下:

确认弹窗提示位置

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