Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

makapaka's avatar

Intelephense doesn't work as expected in VS Code

I'm hoping someone can help me with this - I went through Jeffrey's VS Code videos weeks ago and never got Intelephense working correctly, for eg, when I Cmd+click a class name, it seems to hang and won't find the definition - even if I right click and choose go to definition, I just get the horizontal "thinking" scrollbar at the top of the editor and it doesn't work.

I also can't get auto imports to work which is the big one. For eg, in Laravel, if I type "Auth", the auto import should automatically be able to add in the Facade\Auth right ?

As per the extension notes, I have done "php.suggest.basic": false, in the settings, to no avail?

0 likes
4 replies
rin4ik's avatar

hey there .please try this one IntelliSense

1 like
rin4ik's avatar

to import classes use another package called php namespace resolver. install it and you can go to keyboard shortcuts and find importnamespaceresolver and bind any value you want(in my case f5). after u can import classes very easily just type class name

User 

and press f5 it will show you any possible classes with User related you can select which you want

2 likes
makapaka's avatar

hey thanks - yeh i wanted to stick with Intelephense as Jeffrey recommended it, but this one looks good

rin4ik's avatar

yes I watched that course as well and had same problems. pls mark this discussion as solved

Please or to participate in this conversation.