Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Dart Copy as ImportNew to Visual Studio Code? Get it now.
Dart Copy as Import

Dart Copy as Import

Matthew Nitschke

|
365 installs
| (0) | Free
Provides ability to copy dart files as their package import string
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Dart Copy as Import

Provides context menu actions in the editor and explorer to copy dart files as their import 'package:<packageName>/<path>.dart' format.

This package is specifically helpful over something like Copy import, due to it being specific to dart, and auto populating the package name in pubspec.yaml

Features

You can either use the editor title context menu, or the explorer context menu to "Copy as Import"

demo

Known Issues

Currently only dart is supported, but other languages could be added as needed. Feel free to create an issue/pr

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