Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>GetX Template GeneratorNew to Visual Studio Code? Get it now.
GetX Template Generator

GetX Template Generator

jiaguofeng

|
1 install
| (0) | Free
Quickly generate GetX module with View, Controller, Binding and State.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GetX Custom Generator

一个专为 Flutter GetX 开发者打造的高效模板生成工具。 A VS Code extension to quickly generate GetX modules with a specific structure (View, Controller, Binding, State).

✨ Features (功能特性)

  • ⚡️ 一键生成:在资源管理器右键即可创建模块。
  • 📂 自动建文件夹:根据输入的模块名自动创建独立文件夹。
  • 🛠 标准化模板:自动生成 4 个核心文件,符合模块化开发规范:
    • View (GetView)
    • Controller (GetxController)
    • Binding (Bindings)
    • State (独立的状态管理类)
  • 📝 智能命名:自动处理大小写转换 (输入 user_profile 自动生成 UserProfileController 等)。

🚀 Usage (使用方法)

  1. 在 VS Code 左侧资源管理器 (Explorer) 中,右键点击 目标文件夹。
  2. 选择菜单中的 "Generate GetX Module"。
  3. 输入模块名称(支持蛇形命名 home_detail 或驼峰命名 HomeDetail)。
  4. 插件会自动生成包含 4 个文件的文件夹。

📂 Generated Structure (生成结构示例)

假设你输入的模块名为: product_detail

插件将生成以下目录结构:

product_detail/
├── product_detail_binding.dart      // class ProductDetailBinding
├── product_detail_controller.dart   // class ProductDetailController
├── product_detail_page.dart         // class ProductDetailPage
└── product_detail_state.dart        // class ProductDetailState
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft