Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dart Barrel Export File GeneratorNew to Visual Studio Code? Get it now.
Dart Barrel Export File Generator

Dart Barrel Export File Generator

Dominik Roszkowski

|
15,428 installs
| (5) | Free
Create barrel file that exports the files in current directory. This allows for importing whole folders in batch instead of importing each file one by one. Creates index.dart and dir_name.dart.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dart Barrel Export File Generator

VS Code Extension

Features

Usage

This extension includes following commands:

  • Export Dart files in current directory export file
    • export file name configurable in settings
    • can be run recursively
    • will create export_file_name.dart file exporting all the Dart files in the current directory e.g. widgets.dart if run within widgets directory
  • Export (add) current Dart file to export file (export file name configurable in settings)
    • will add current file to export_file_name.dart in the current directory

Extension Settings

Usage

This extension contributes the following settings:

  • dartBarrelExportFileGenerator.exportFileName: export file name (default: dir_name.dart)
  • dartBarrelExportFileGenerator.recursiveExport: iterate through directories recursively to create global export file (default: false)
  • dartBarrelExportFileGenerator.ignorePatterns: ignore files (glob patterns)

Source

Source code available on GitHub.

This is a fork of create-index.

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