开发者

PHP intellisense on Visual Studio - Is it possible?

Nothing compares to Visual Studio. Infact it is the reason why I develop using Asp.Net. But once in a while I encounter a cli开发者_如何学Goent who specifically wants a solution authored in PHP.

All PHP IDEs(Free) I have used lack a vital feature available in Visual Studio that I love so much - INTELLISENSE. So is there a free way to enable PHP intellisense on Visual Studio ?


You can use VS.PHP to get php in similar VS environment. (Commercial)

Introducing the next generation of PHP development tool Rich intellisense and debugging support Easy to get started with built-in PHP web server

Or Free alternative:

Php4VS

The Php4VS is a Package for Visual studio which aims to do the same thing as some others do, but with one difference : for FREE !


Use Netbeans as an "extension". 1. install netbeans 2. In visual studio, right-click on a php file and select open with. Add new.., and select Netbeans.exe in the bin folder in the Netbeans installation folder. Click OK and also set as default.

Now, just for php files, they'll open in netbeans. It's probably the best solution for now especially with the Express editions which don't allow 3rd party extensions.

Note: you most likely want to set netbeans to use utf-8 so you won't have problems including php files in other files. to do that:

Go to "etc" folder in Netbeans Installatin folder. Open netbeans.conf file and add on netbeans_default_options following line:

-J-Dfile.encoding=UTF-8


What about PHP tools for Visual Studio?


Visual Studio does not natively support PHP as a language. However there do appear to be third party which provide extensions for PHP that provide intellisense (among other features)

  • http://www.jcxsoftware.com/vs.php


I was having an issue when converting my HTML files to PHP, there was no intellisense available at all - not even for the HTML portions. To fix this, R-click the PHP file in Solution Explorer and select Open With... , then select "HTML Editor" and "Set as Default". It won't give PHP support, but it brought back HTML intellisense for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜