Skip to content

A simple plugin for VSCode to change all Dart/Flutter imports to relative format.

Notifications You must be signed in to change notification settings

bluefireteam/vscode-dart-import

Folders and files

NameName
Last commit message
Last commit date
May 30, 2020
May 30, 2020
May 30, 2020
Oct 11, 2020
May 30, 2020
Jul 2, 2018
Jul 2, 2018
Jul 2, 2018
Oct 11, 2020
Sep 21, 2020
Apr 1, 2021
Oct 11, 2020
Jul 2, 2018
Jul 2, 2018

Repository files navigation

dart-import

CI Status Latest Release

A simple plugin for VSCode to change all Dart/Flutter imports to relative format.

Find it on the VSCode Marketplace.

Features

Run the command "Fix Imports" from the Command Palette; all imports from your own package will become relative. Also, the "Organize Import" command will be called.

The only command added (so far) is "dart-import.fix"; you can bind it as desired.

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 deploy. If your PAT token is expired, go to this page to get a new one.