Page 1 of 1

PHP Files Association

PostPosted: April 18th, 2013, 5:01 pm
by Swift-R
Is it possible to associate .php files with Visual Studio 2012? When I am selecting a program in "Opens in:", there is a "Visual Studio Version Selector" but each time I open a .php file it opens in a new Visual Studio window not on a new tab.

Re: PHP Files Association

PostPosted: April 18th, 2013, 8:29 pm
by Jakub Misek
PHP Tools should already associate .php and .phpproj files with Visual Studio unless user changes it in Windows Explorer.

Anyway to be sure, you can set association with following (so .php file will be opened in an existing VS in new tab)

Code: Select all
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /Edit "%1"

Re: PHP Files Association

PostPosted: April 18th, 2013, 10:15 pm
by Swift-R
It didn't, maybe because I had .php files associated with another program. How can I associate .php files with Visual Studio 2012 and those params?

Re: PHP Files Association

PostPosted: April 19th, 2013, 10:00 am
by Jakub Misek
There isn't any command for that in VS. You can delete following key in your registry
Code: Select all
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\Packages\{9DD0D70B-6760-4C96-B1DC-03AAF937D95A}\

ShellAssocSet
and restart VS. This updates .php file association.

If it won't work for you, we can add an additional settings in future version.

Re: PHP Files Association

PostPosted: April 19th, 2013, 1:46 pm
by Swift-R
Didn't work.

Re: PHP Files Association

PostPosted: April 21st, 2013, 12:09 pm
by Jakub Misek
Thanks. We'll add some additional options into VS.

May I ask what is your Windows version?

Re: PHP Files Association

PostPosted: April 21st, 2013, 2:49 pm
by Swift-R
Win8

Re: PHP Files Association

PostPosted: April 21st, 2013, 2:56 pm
by Jakub Misek
Thanks, we'll improve this in the future update.

Re: PHP Files Association

PostPosted: April 21st, 2013, 6:55 pm
by Swift-R
Great! If you need some testing of any sort I'll be more than happy to help.

Regards.

Re: PHP Files Association

PostPosted: April 30th, 2013, 4:48 pm
by Jakub Misek
Thank you very much. I may send you an update privately as we'll get this working.

Thanks!