Native PHP support in Visual Studio 2010?

2019-01-11 12:35发布

Is there any truth to the rumor that Visual Studio 2010 will natively support PHP coding?

(http://www.codeplex.com/php4vs)

If not,what are the options?(except VS.php)

14条回答
男人必须洒脱
2楼-- · 2019-01-11 12:54

komodo is the best multi platform free version out there...

查看更多
Melony?
3楼-- · 2019-01-11 12:56

Visual Studio 2010 won't have native PHP support. However, it's "relatively easy" to add some language support to Visual Studio 2010. If all you want is syntax highlighting, auto comment/uncomment, and brace matching, it could be done in one sitting by someone who knows how the new extensibility model works.

After you wrote this post, I started making an add-in to show you what I mean. I downloaded the WordPress source only to note that the .php extension is registered with Expression Web 3, which does support PHP (first image).

My 15 minute attempt at an extension (second image) is not as impressive, but keep in mind I started working on it after I answered this question. Edit: Updated to color keywords/global functions/global objects separately.

Microsoft Expression Web for PHP http://www.280z28.org/images/vsx/ExpressionWebForPhp.png

My PHP extension for Visual Studio 2010 http://www.280z28.org/images/vsx/Vs10SamplePhp2.png

查看更多
甜甜的少女心
4楼-- · 2019-01-11 12:57

One of my projects has over 30,000 files, that includes however images and other items, in total about 12,000 php and js scripts, VS.php looked at it and barfed. Back to netbeans for now. Netbeans is amazing in what it does including the js support but I HATE java based apps. They are way too slow and fat.

查看更多
仙女界的扛把子
5楼-- · 2019-01-11 12:59

I would recommend PHP Tools for Visual Studio - new PHP integration for VS2010 and VS11.

  • syntax highlightingPHP syntax highlighting
  • IntelliSense (tooltip, function assist, code completion, go to definition,...)intellisense here
  • code navigation
  • custom file extensions
  • integrated documentation

Its basic features are free, it is fast and stable (preferred for me)

查看更多
\"骚年 ilove
6楼-- · 2019-01-11 13:00

the best solution for true php projects whether small or large is "Zend Studio".

查看更多
仙女界的扛把子
7楼-- · 2019-01-11 13:04

Just use Komodo, they have both free and commercial IDE

查看更多
登录 后发表回答