Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>dart_idx_generatorNew to Visual Studio Code? Get it now.
dart_idx_generator

dart_idx_generator

timokz

|
780 installs
| (3) | Free
Generate index.dart files for your Flutter and Dart Projects.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Build Status

dart-idx-generator

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.

Features

  • 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.

Extension Settings

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"
  • Scope

    • Specify the scope for index file generation (e.g., lib/).

Known Issues

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.

Release Notes

1.0.0

Initial release of basic functionalities. Potential abuse of diskspace at your own risk.

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