Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>tod-vscode-extensionNew to Visual Studio Code? Get it now.
tod-vscode-extension

tod-vscode-extension

coffee-ai

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

tod-vscode-extension README

根据 apimock 服务,快速插入对应代码片段

登录

因为涉及到接口查询,需要先登录自己的账号密码,⇧⌘P 后输入 login,之后输入账号,回车后输入密码即可

doc.gif

也可以通过 Setting -> User -> Extensions -> TOD 进行设置账号和密码,再进行登录时会默认回填到输入框

使用

接口

在.tsx 文件中,⇧⌘P 后输入 Generate Api 后,输入需要导入的接口 id,即可根据 m2s 生成对应接口文件,并导入到页面

表格&表单

在.tsx 文件中,右键选择 Insert Sinppets -> Generate List,之后弹窗输入接口 ID,使用 m2s 更新接口

doc.gif

代码片段

在 tsx 文件中,ProTable 组件下输入「批量操作」,回车之后即可插入对应的代码片段,目前支持以下片段

  • 「批量操作」
  • 「编辑表格」

doc.gif

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