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

Feature Folder Generator

soo

|
6 installs
| (0) | Free
Generate feature folder structure with data, domain, and presentation layers for clean architecture pattern. Quickly scaffold your feature folders with a single command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Right-click on a folder in VS Code Explorer
  2. Select "Generate Feature Folder"
  3. Enter the feature name
  4. The extension will create the folder structure and necessary files

Generate Usecase

  1. Right-click on a folder inside a feature's domain/usecases directory
  2. Select "Generate Usecase"
  3. Enter the usecase name (e.g., add_comment, update_post)
  4. 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
    • Default: true
  • featureFolderGenerator.usecaseImports: Default imports for usecase files
    • Type: array of strings
    • Default: []
    • Example:
      [
        "package:example_app/core/failures.dart",
        "package:example_app/core/usecase.dart",
        "package:multiple_result/multiple_result.dart"
      ]
      

Requirements

  • VS Code 1.96.0 or higher

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.

  • Extension Guidelines

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.

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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