I can Ctrl + Click and it goes to the declaration in the PHP, like this:

enter image description here

The problem is, my files do not only have PHP. It doesn't work with JavaScript functions as you can see:

enter image description here

Is there any extension that make it work with JavaScript? I know there is an extension that works for CSS, and I'm using it.

  • I see that question is still open, meanwhile VSCode does that for me. I'm not sure if it's through an extension, though I have a few active. But even with all JS-related ones disabled, it still does, so I assume it must be built-in by now. If it is resolved for you too, can you close the question, pls? ;)
    – MBaas
    Feb 19, 2021 at 8:42

1 Answer 1


Try Ctrl+Click Go To Definition extension

  • this extension was incorporated in vscode. It should work like that, but in this case only works to php functions, and not javascript Oct 3, 2019 at 0:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.