Intelisense for files from other solution not working

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Intelisense for files from other solution not working

Postby perry » April 2nd, 2018, 5:04 pm

I have PHP project that consist of two solutions. One with main web project and the other with "libraries". However, when I use code from "libraries" in other solution, I have no intelisense and classes are "underlined" as incorrect.

I have tried to add include path in solution settings, but no luck.
perry
 
Posts: 3
Joined: April 2nd, 2018, 5:00 pm

Re: Intelisense for files from other solution not working

Postby Miloslav Beno » April 3rd, 2018, 12:53 pm

Hi Perry,

Thanks for writing us.

include_path settings currently just works for server, but not for intellisense. We are planing to consolidate this setting into something more user friendly.

Currently the way you can do what you wants is to add project reference to your library project but you will need to have it in your solution. Once you have both projects in your solution, just right click on the References and select Add Reference.

Please let me know if that helped.

Thanks,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Intelisense for files from other solution not working

Postby perry » April 5th, 2018, 6:25 am

It is working, thank you.
perry
 
Posts: 3
Joined: April 2nd, 2018, 5:00 pm

Re: Intelisense for files from other solution not working

Postby Miloslav Beno » April 10th, 2018, 8:30 am

No problem, glad it works.

Cheers,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 29 guests

User Control Panel

Login

Who is online

In total there are 29 users online :: 0 registered, 0 hidden and 29 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 29 guests