Hi,

In my project i have many files with the extention .cls
I have added %s.cls to the project intellisense project settings, and added cls as a PHP file extension.

Now when i create the following code intellisense does not work.

<?php
require "MyClass.cls";
$o = new MyClass(); // pressing F12 to go to definition does not work
$o-> //No intellisence
?>

The following code will work

<?php
require "MyClass.php";
$o = new MyClass(); // pressing F12 to go to definition works
$o-> //Nice intellisense making my life easy
?>

The following code will work

<?php
require "MyClass.inc";
$o = new MyClass(); // pressing F12 to go to definition works
$o-> //Nice intellisense making my life easy
?>

I am investigating an upgrade from eclipse to visual studio and this is the only issue i found.
Visual studio tested: 2010 and 2008
VSphp version 2.9 for both vs versions mentioned above.

These are my project config settings:

"General"
{
"ProjectType" = "local"
"AutoLoadTemplate" = "%s.cls;%s.php;%s.inc;"
"IncludeDirs" = "../"
}
"Configurations"
{
"Local|PHP 5.2"
{
}
"Staging|PHP 5.2"
{
}
"Production|PHP 5.2"
{
}
}

remcov says:

I analyzed the X.intellisense.cache file and it only contains .inc and .php files.
Nothing shows up from inside .cls files.

remcov says:

I found the following registry value tweak to fix my problem:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\9.0\Languages\Language Services\PHP]
"Extensions"=".php;.php4;.php5;.inc;.phpt;.cls"

I simply added .cls to this key and all of a sudden all my cls files are now indexed for intellisense.
I hope this is helpfull for others also.