PHP Files Association

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

PHP Files Association

Postby Swift-R » April 18th, 2013, 5:01 pm

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.
Swift-R
 
Posts: 7
Joined: April 18th, 2013, 1:44 am

Re: PHP Files Association

Postby Jakub Misek » April 18th, 2013, 8:29 pm

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"
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: PHP Files Association

Postby Swift-R » April 18th, 2013, 10:15 pm

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?
Swift-R
 
Posts: 7
Joined: April 18th, 2013, 1:44 am

Re: PHP Files Association

Postby Jakub Misek » April 19th, 2013, 10:00 am

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.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: PHP Files Association

Postby Swift-R » April 19th, 2013, 1:46 pm

Didn't work.
Swift-R
 
Posts: 7
Joined: April 18th, 2013, 1:44 am

Re: PHP Files Association

Postby Jakub Misek » April 21st, 2013, 12:09 pm

Thanks. We'll add some additional options into VS.

May I ask what is your Windows version?
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: PHP Files Association

Postby Swift-R » April 21st, 2013, 2:49 pm

Win8
Swift-R
 
Posts: 7
Joined: April 18th, 2013, 1:44 am

Re: PHP Files Association

Postby Jakub Misek » April 21st, 2013, 2:56 pm

Thanks, we'll improve this in the future update.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague

Re: PHP Files Association

Postby Swift-R » April 21st, 2013, 6:55 pm

Great! If you need some testing of any sort I'll be more than happy to help.

Regards.
Swift-R
 
Posts: 7
Joined: April 18th, 2013, 1:44 am

Re: PHP Files Association

Postby Jakub Misek » April 30th, 2013, 4:48 pm

Thank you very much. I may send you an update privately as we'll get this working.

Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 44 guests

cron

User Control Panel

Login

Who is online

In total there are 44 users online :: 0 registered, 0 hidden and 44 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 44 guests