Auto-Import not always
I'm using Magento 2 which I assume is fully namespaced and I've checked all the 'Enable...xs" under PHP in Editor-Auto Import but the context menu popup to import only pops rarely. I'm following a video tutorial using the same Mag/PHPStorm setup and the video is showing popups all the time.
Any pointers?
Please sign in to leave a comment.
That sounds pretty vague. What video is that? What version are you using? Is there a file/class/line/cursor position we could you to check that?
Just managed to queue the vid to where I can see my problem:
https://www.youtube.com/watch?v=JvBWJ6Lm9MU
13mins 08-15secs
Vinai Kopp does a Copy By Reference on \Magento\Framework\App\DeploymentConfig and when he pastes he gets a context menu with 'Import class' , i can't seem to see that.
Do you mean that sometimes the menu doesn't pop up on its own? If so, it can be forced to appear with Alt+Enter, please try.
Doh!! Thanks. You're right.