This extension automates the creation of Dart index files (also called barrel-files), organizing exports from files and subdirectories into an indexed format, reducing long and unnecessary import statements, as well as relative imports.
- Generating an index file, exporting your current directories files.
- Generating index files for your whole project.
- Customization to fit preferences and suggested approaches
- Deleting all index files in your project
Upcoming Feature: choose between index files, and export statements at the top of each file.
Customization is availabe through the following settings:
-
Exclude Directories
- Directories that should be excluded from the index file generation.
-
Include Subdirectories
- Include subdirectories in the index file generation.
-
File Name
- Name your barrel files
"index.dart"
or like the directory they're in"${package_name}.dart"
- Name your barrel files
-
Scope
- Specify the scope for index file generation (e.g., lib/).
A Buffer Deprecation Warning can unfortunately not be resolved, as vscode depends on a module, which itself depends on an unmaintained package, see link provided.
Initial release of basic functionalities. Potential abuse of diskspace at your own risk.