Flutter-intellij: Autocomplete dependency version in Pubspec.yaml

Created on 4 Jun 2018  路  6Comments  路  Source: flutter/flutter-intellij

Hey there :) Thanks again for all the hard work on this plugin. Not sure if this feature request is possible, but would save me a lot of time when I create new projects / update my dependencies.

Feature Request: Autocomplete Dependency version while editing Pubspec.yaml

  1. Open pubspec.yaml in Dart or Flutter Package
  2. Go to dependencies section
  3. Typing "http: "
  4. See suggested version constraints based on the installation instructions on pub.dartlang.org.
  5. Select one and keep adding dependencies

Current Workflow:

  1. Open pubspec.yaml
  2. Go to dependencies
  3. Start typing http
  4. Realize I need to get appropriate version
  5. Open up browser
  6. Navigate to pub.dartlang.org
  7. Search for the package I want
  8. Open the Installation page and copy the number
  9. Go to editor and paste it in

A video of the functionality I'm interested in, from VSCode working with package.json files: https://www.youtube.com/watch?v=3LP5QpkoUAA

P2 completion dart sdk enhancement topic-editing

Most helpful comment

I just found this one for IntelliJ.

All 6 comments

On IntelliJ NodeJS's plugin, we have auto complete on version number, it allow us to see which version is available, but having autocomplete/suggestion also on plugin name would be awesome too !

@stereotype441, @bwilkerson : since this is predicated on a bunch of work on analysis server, should we move this bug there (or open another to track?)

Any update on this request? It is very useful.

@brianegan I just published a command-line utility that scratches this itch. I'd love feedback!

Visual Studio Code has a tool for this, it would be nice to have it as well on IntelliJ

I just found this one for IntelliJ.

Was this page helpful?
0 / 5 - 0 ratings