flutter / flutter/flutter-intellij

Autocomplete dependency version in Pubspec.yaml

Open
#2,313 6 comments 19 reactions 0 assignees View on GitHub
dependency: dart sdk P2 topic-editing
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.