Overview Version History Q & A Rating & Review
Feature Folder Generator
VS Code extension for generating feature folder structure following clean architecture pattern in Flutter projects.
Features
Generates feature folder structure with data, domain, and presentation layers
Supports different state management approaches (Bloc or ViewModel)
Creates necessary files with proper naming conventions
Configurable through VS Code settings
Generate usecase files with automatic repository import
Usage
Generate Feature Folder
Right-click on a folder in VS Code Explorer
Select "Generate Feature Folder"
Enter the feature name
The extension will create the folder structure and necessary files
Generate Usecase
Right-click on a folder inside a feature's domain/usecases
directory
Select "Generate Usecase"
Enter the usecase name (e.g., add_comment
, update_post
)
The extension will create a usecase file with:
Default imports from settings
Automatic repository import using relative path
Basic usecase template with params class
Folder Structure
feature_name/
├── data/
│ ├── models/
│ ├── repositories/
│ └── sources/
├── domain/
│ ├── entities/
│ ├── repositories/
│ └── usecases/
└── presentation/
├── bloc/ (optional)
├── viewmodels/ (optional)
├── pages/ (optional)
└── widgets/
Configuration
The extension can be configured through VS Code settings:
featureFolderGenerator.stateManagement
: Choose state management approach
Options: "bloc", "viewmodel", "none"
Default: "viewmodel"
featureFolderGenerator.generatePages
: Generate pages folder
featureFolderGenerator.usecaseImports
: Default imports for usecase files
Requirements
Extension Settings
This extension contributes the following settings:
featureFolderGenerator.stateManagement
: Choose state management approach
featureFolderGenerator.generatePages
: Generate pages folder
featureFolderGenerator.usecaseImports
: Default imports for usecase files
Known Issues
None at the moment.
Release Notes
0.1.2
Initial release of Feature Folder Generator:
Basic folder structure generation
Support for Bloc and ViewModel
Configurable settings
File generation with proper naming conventions
Usecase generation with automatic repository import
Following extension guidelines
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
Split the editor (Cmd+\
on macOS or Ctrl+\
on Windows and Linux).
Toggle preview (Shift+Cmd+V
on macOS or Shift+Ctrl+V
on Windows and Linux).
Press Ctrl+Space
(Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!