Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Clean Architecture ScaffoldingNew to Visual Studio Code? Get it now.
Clean Architecture Scaffolding

Clean Architecture Scaffolding

euclidesgc

|
907 installs
| (1) | Free
Generate folder structure and files for features in Flutter projects in accord with your custom templates
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Clean Architecture Scaffolding


Create your own templates of source code files and directories using predefined keywords and variables to standardize and streamline your work as developer. Just follow the step by step below and see how simple it is.

If this extension was useful to you, please, give it five stars.
By doing this you help other devs to standardize their code making the work much better for the whole community.
Think about it.

Features / Walkthrough

STEP 01:

Right-click on any folder in your project and then click "Clean Arch Scaffolding.: Create folders".

Clean Arch Scaffolding > New Feature

Enter the name of your New feature:

Give a feature name

The directories will be created according to the template defined in the settings.
The folders will be created

STEP 02:

Right-click in folder called 'usecase' (Don't worry, we use regex to identify any folder with usecase in the name to show this menu option!) then click "Clean Arch Scaffolding.: New usecase".
Clean Arch Scaffolding > New Feature

If the my templates folder does not exist, a dialog will open asking you to download some examples from the web.
Click Yes and the folder will be created with the templates inside.

Create templates

Try again and repeat this last step. A dialog will appear asking for your use case name.

usecase name

The source files will be created in accord with templates in folder ".my_templates" of your project:
Folder template

You can write the template file using special keywords.
Look this sample:
Template file

Write your own templates and put in your repository. Use your template in any project. Just set with your repository properties:

Repo options

Settings:

If you want to adapt the template, go to the extension settings and edit the json with the templates.
Like this default settings

You can use this special keywords to indicates some locations:

  • {{package_name}} to get name of your package in pubspec.yaml file;
  • {{root_folder}} to first folder of your projetc;
  • {{custom_folder}} to clicked folder;
  • {{feature_name}} to use the given custom name;
  • {{usecase_name}} to use a given usecase name;

And you can associate this keywords with this format pattern too as given below:

  • {{usecase_name.lowerCase}} to use a given usecase name with lowercase pattern;
  • {{usecase_name.upperCase}} to use a given usecase name with UPPERCASE pattern;
  • {{usecase_name.snakeCase}} to use a given usecase name with snake_case pattern (indicate to file path names);
  • {{usecase_name.pascalCase}} to use a given usecase name with PascalCase pattern (indicate to Class names);
  • {{usecase_name.camelCase}} to use a given usecase name with camelCase pattern (indicate to variables names).

Ex. 01 (Template file): '{{custom_folder}}/{{feature_name}}/domain/usecases/{{usecase_name.snakeCase}}.template'

Ex. 02 (Folder only): '{{custom_folder}}/{{feature_name}}/domain/entities/'

Attention:
End Folders only template with '/' or it will be ignored.
Remember, files do not always have an extension. ;)

Using this folders templates

Extension Settings

  • scaffolding.layers.templates: Array of strings with folder template definitions.

Enjoy!

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