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.
How to auto import FLUTTER packages Visual Studio Code ver: 1.51.1 Windows 10
Asked Answered
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.
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 haha, we can't let your blood pressure win
davidwoo.flutter-auto-import
here is the extension.
© 2022 - 2024 — McMap. All rights reserved.