I recently started to work on one of cool zend framework applications. I have my roots basically in .Net Environment and I love Visual Studio as IDE.
So I decide to use Vs.PHP as a PHP plugin in Visual Studio which allows me to use Visual Studio 2010 for developing PHP applications.
In zend application, you view files have .phtml extension, which by default do not meet to any Editor in Visual Studio, so you don’t get any sensible intellisens by default. That’s pure annoying.
What you lose :
2. Rich formatting options provided by visual Studio like “Format Selection”
1. Go to Tools –> Options –> Text Editor –> File extension
2. In Extension write .phtml and In Editor drop down select HTML Editor
3. Press Ok.
4. Restart Visual Studio
5. If any .phtml files opened by default close them and reopen.
Congratulations.. Now you are having good formatting options, intellisense at your service.
Note : Format Selection will not work on lines containing <?php lines.