Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm Autocomplete Symfony2 with Source Elsewhere

Is there anyway with PhpStorm to configure it so it can look at Symfony2 source code without it being in my active project.

The reason I ask is I've set up my project in the recommended way, and so my repository only has my own code (not the Symfony2 code). Due to this setup, PhpStorm can't autocomplete any of the Symfony stuff because it doesn't know where the code is.

Any ideas?

like image 578
samanime Avatar asked Dec 03 '25 12:12

samanime


1 Answers

Go to Settings -> PHP -> (include path) -> Select the directory on your filesystem.

It will be included in your "External Libraries" in your project window.

like image 64
theredled Avatar answered Dec 06 '25 04:12

theredled



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!