Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Dart Part of And Part GeneratorNew to Visual Studio Code? Get it now.
Dart Part of And Part Generator

Dart Part of And Part Generator

Mohamad Haikal

|
480 installs
| (7) | Free
Eliminates the hassle of manually managing [ part of ] and [ part ] directives, optimizing Dart workflow.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dart Part of And Part Generator - Logo

Dart Part of And Part Generator (VS Code Extension)

Visual Studio Marketplace Rating (Stars) Visual Studio Marketplace Downloads Visual Studio Marketplace Version GitHub Repo Stars

Simplify and streamline Dart project management with this VS Code extension. It automates the creation of [part of] and [part] directives, enhancing the workflow for Dart developers.

overview

Features

  • Quickly create [part of] and [part] directives in Dart files.
  • Enhance and streamline your Dart development workflow by automating the process for better productivity.

Installation

  1. Ensure you have Visual Studio Code version 1.70.0 or higher installed.
  2. Launch Visual Studio Code.
  3. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the command palette.
  4. Select Extensions: Install Extensions.
  5. Search for Dart Part of And Part Generator by Mohamad Haikal.
  6. Click Install to install the extension.
  7. Reload Visual Studio Code.

Usage

  1. Open a Dart file in VS Code.
  2. Use the keyboard shortcut Ctrl+Alt+P (Windows/Linux) or Cmd+Alt+P (Mac) to trigger the extension.
  3. Alternatively, you can run the extension from the Command Palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac), then typing and selecting Dart: Create 'Part' & 'Part Of'.
  4. The extension will automatically generate [part of] and [part] directives based on your file structure.

This provides flexibility in using the extension according to your preferred workflow.

extinsion-usage

Configuration

To customize the default imports file path used by the extension, follow these steps:

  1. Open the VS Code settings by pressing Ctrl + , (Windows/Linux) or Cmd + , (Mac) on your keyboard.

  2. In the settings search bar, type DartPartofAndPartGenerator.ImportsFilePath.

  3. You will find a setting labeled Imports File Path under the extension's configuration section.

  4. Modify the path according to your project structure. The default value is set to /lib/utils/imports.dart.

change-imports-file-path

Note: Ensure that the path starts with / (forward slash) and is relative to the workspace root.

Important: If the specified file is not found, the extension will automatically create it.

Now, the extension will use the specified file path for managing imports in your Dart project. This customization provides flexibility to adapt the extension to various project setups.*

Issues and Contributions

If you encounter any issues or have suggestions for improvement, please submit an issue. Contributions are also welcome!

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