Skip to content

jeroen-meijer/pubspec-assist

Repository files navigation

Pubspec Assist

Easily add dependencies to your Dart / Flutter project.

Pubspec Assist is a Visual Studio Code extension that allows you to easily add dependencies to your Dart and Flutter project's pubspec.yaml, all without leaving your editor.

Usage

Simply open the Command Palette (by default, Ctrl+Shift+P on Windows, ⌘+Shift+P on Mac) and search for "Pubspec Assist".

Then, choose any of the available options (see the video above).

Pro-tip: You can search for multiple packages at a time by separating every package name with a comma (bloc, cloud_firestore, provider).

Download

Download the latest version here.

Features

Get the latest version for your packages.

Pubspec Assist will get you the latest version of whatever package you are looking for, puts it in your pubspec.yaml and formats the file automatically. If you already have the package in your pubspec.yaml, Pubspec Assist automatically updates it to the latest version for you. Oh, and it also supports dev_dependencies!

Never leave VS Code.

Forget going to the pub.dev to search for your packages and copy the dependency text.
You can look for and import packages directly from VS Code without ever switching windows.

Smart (Fuzzy) search.

Pubspec Assist is smart about finding what you're trying to search for.
It gets you the most likely package you want and will give you a selection to choose from otherwise and sorts them by relevance.

Automatically sort dependencies.

Pubspec Assist automatically sorts your dependencies after adding a new package.
This makes it easy to manage packages from multiple sources, such as local packages, ones hosted on Git, somewhere else or regular packages from pub.dev.

Already have your dependencies set up? Just use the sort command to instantly sort your existing dependencies.

Compatible with multiple projects.

Pubspec Assist will add your new dependencies to the pubspec.yaml that's open in your editor.
Don't have your pubspec.yaml file opened? No problem - the package will be added to the pubspec.yaml in the root of your workspace.


Requirements

  • Visual Studio Code
  • An internet connection
  • A sense of relief after installation.

Roadmap

Some features that are planned for the future, in order of expected implementation.

  • Command for updating all packages.
  • Auto-complete while searching.

Bugs and feature requests

If you have any bugs or feature requests to report, please check out the issues on the GitHub repository or create a new one.