How to auto import FLUTTER packages Visual Studio Code ver: 1.51.1 Windows 10
Asked Answered
M

2

8

I watch youtube tutorials and when the presenter types part of a screen name the import is automatically created. In one video the presenter enters part of a screen name and a list appears with the required screen at the top. He presses tab and the import is generated. When I do it the list appears I press tab and nothing happens. I have checked for "auto import" in the extension marketplace but am unable to locate one for Dart. Every video I watch it works. It is such a silly little thing but it is driving me crazy, which is not good for my blood pressure. :) Somebody please help me because I have tried searching the net and youtube.

Mediatory answered 19/11, 2020 at 12:23 Comment(1)
marketplace.visualstudio.com/…Schlicher
P
6

First type the name of class you wish to import.

Since it has not already been imported, VSCode shows red underline below that identifier name. Make sure your cursor is pointed to that unrecognized identifier name and depending on your platform, press

ctrl + . or cmd + .

to see a list of available quick fixes.

Prosopopoeia answered 19/11, 2020 at 12:43 Comment(4)
I want to import "Firebase Auth"Mediatory
I type import 'firebase_auth' but no red line and ctrl+ just increases the type size. In the tutorial I am following on youtube as soon as he types import' he gets a red underline a list of packages appear and he just picks the one he wants. Please help this is driving me insane.Mediatory
I decided to reinstall Visual Studio Code even though I had the latest version and of course it started to work. Thank you for your help.Mediatory
@Mediatory You've probably figured it out by now, but you're not supposed to hit the + key. You have to press Ctrl + ..Filomenafiloplume
W
1

haha, we can't let your blood pressure win

davidwoo.flutter-auto-import

here is the extension.

Whine answered 28/9, 2023 at 9:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.