dart-import has 631,907 recorded installs on VS Code Marketplace, an increase of 0.4% over the past 30 days, ranking #747 of 2,515 tracked listings.
Rating: 4.55 / 5 from 20 ratings
About dart-import
dart-import
A simple plugin for VSCode to change all Dart/Flutter imports to relative format.
Find it on the VSCode Marketplace.
Features
Run one of these from the Command Palette, or bind them as desired. Imports from a file's own package become relative, then imports are sorted (this needs the Dart extension) and the file is saved.
- "Fix Imports" (
dart-import.fix) fixes the current file. - "Fix All Imports" (
dart-import.fix-all) fixes every package in the workspace, with a progress notification you can cancel. Large repositories take a while, as each file goes through the Dart analyzer.
Set dartImport.fixOnSave to also fix a file whenever you save it.
Monorepos work out of the box: each file uses the nearest pubspec.yaml above it. Only files inside a package's lib folder have their imports changed. Generated files (see dartImport.excludeGeneratedFiles) are skipped by "Fix All Imports" and fix on save.
Contribute
Any help is appreciated! Comment, suggestions, issues, PR's! Give us a star to help!
Setup
This is a regular vscode extension setup. You can use the scripts in the package.json file to test.
To setup, run npm i to download dependencies.
Then, you can run npm test to run the tests, make sure they are passing.
To test in your machine, run npm run package to create a new VSIX file, and then use vscode's built in command Extensions: Install from VSIX... (from command palette) to load your version.
In order to deploy, run npm run publish. If your PAT token is expired, go to this page to get a new one.
Description from the VS Code Marketplace listing.
- dart
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Other plugins
All 20 dart-import alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=luanpotter.dart-import. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.