Is there any truth to the rumor that Visual Studio 2010 will natively support PHP coding?
关于Visual Studio 2010将支持PHP编码的传言是否属实?
(http://www.codeplex.com/php4vs)
(http://www.codeplex.com/php4vs)
If not,what are the options?(except VS.php)
如果没有,有什么选择?(VS.php除外)
14 个解决方案
#1
25
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.
Visual Studio 2010没有本地PHP支持。然而,在Visual Studio 2010中添加一些语言支持是“相对容易的”。如果您想要的只是语法突出显示、自动注释/取消注释和括号匹配,那么可以由了解新的可扩展性模型如何工作的人一次性完成。
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).
在你写完这篇文章后,我开始制作一个插件来向你展示我的意思。我下载了WordPress的源代码,只是注意到。PHP扩展是通过Expression Web 3注册的,它支持PHP(第一个图像)。
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.
我15分钟的扩展尝试(第二幅图片)不是那么令人印象深刻,但请记住,我在回答了这个问题后就开始着手做了。编辑:分别更新为颜色关键字/全局函数/全局对象。
Microsoft Expression Web for PHP http://www.280z28.org/images/vsx/ExpressionWebForPhp.png
微软的PHP表达式Web http://www.280z28.org/images/vsx/ExpressionWebForPhp.png
My PHP extension for Visual Studio 2010 http://www.280z28.org/images/vsx/Vs10SamplePhp2.png
我为Visual Studio 2010开发的PHP扩展http://www.280z28.org/images/vsx/Vs10SamplePhp2.png
#2
14
Check out CodeLobster php, it's free and has a very similar look and feel to visual studio plus it has IntelliSense and debugging support.
查看CodeLobster php,它是免费的,外观和感觉与visual studio非常相似,而且它还支持智能感知和调试。
#3
10
I would recommend PHP Tools for Visual Studio - new PHP integration for VS2010 and VS11.
我将为Visual Studio推荐PHP工具——VS2010和VS11的新PHP集成。
- syntax highlighting
- 语法高亮显示
- IntelliSense (tooltip, function assist, code completion, go to definition,...)
- 智能感知(工具提示,函数帮助,代码完成,转到定义,…)
- code navigation
- 代码导航
- custom file extensions
- 自定义文件扩展名
- integrated documentation
- 集成的文档
Its basic features are free, it is fast and stable (preferred for me)
它的基本功能是免费的,快速稳定(我更喜欢)
#4
5
As far as large projects, VS.Php 2.7 improved quite a bit in handling large projects (10000+ files)
对于大型项目,VS.Php 2.7在处理大型项目(10000+文件)方面有很大改进
Give it a try and let me know,
试一试,让我知道,
Juan
胡安
www.jcxsoftware.com
#5
2
It is not true that VS 2010 will natively support Php.
VS 2010对Php的原生支持不是真的。
AFAIK the only options are vs.php and vs.php. ;)
唯一的选项是vs.php和vs.php。,)
#6
1
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.
我的一个项目有超过30,000个文件,其中包括图像和其他项目,总共约12000个php和js脚本,VS.php查看了它并进行了倒刺。现在回到netbeans。Netbeans在支持js方面做得很棒,但我讨厌基于java的应用。他们太慢太胖了。
#7
1
Visual Studio has various types of support for PHP through the links, tools, and projects listed here but not "native" support (meaning install just Visual Studio and be able to create PHP projectsa and websites).
Visual Studio通过在这里列出的链接、工具和项目支持PHP,而不是“本地”支持(意味着安装Visual Studio并能够创建PHP projectsa和网站)。
WebMatrix, another Microsoft product (free) does have native support. You can install it via the Web Platform Installer and immediately start building PHP sites from scratch or install various PHP 3rd party solutions like WordPress, Drupal, etc.
WebMatrix是微软的另一款免费产品。您可以通过Web平台安装程序安装它,并立即开始构建PHP站点,或者安装各种PHP第三方解决方案,如WordPress、Drupal等。
WebMatrix also has pretty good support for MySQL (via the MySQL->Net connector, installable through the web platform installer, just search for MySQL in the Web PI tool). You cannot create new databases from within WebMatrix but you can create and edit tables and data once the database is created (just create the database through the mysql.exe command line).
WebMatrix也非常支持MySQL(通过MySQL->网络连接器,可以通过web平台安装程序安装,只需在web PI工具中搜索MySQL)。不能在WebMatrix中创建新的数据库,但是可以在创建数据库之后创建和编辑表和数据(只需通过mysql创建数据库)。exe命令行)。
#8
1
There is PHP Language Support, created by Sam Harwell. It has basic editing features for the PHP scripting language.
有PHP语言支持,由Sam Harwell创建。它具有PHP脚本语言的基本编辑功能。
According to it's Visual Studio Gallery page, current editing features include:
根据Visual Studio Gallery的页面,目前的编辑功能包括:
- Syntax highlighting, including support for HTML code outside PHP tags and within documentation comments
- 语法突出显示,包括对PHP标记外和文档注释内的HTML代码的支持
- Outlining support for quickly collapsing classes and functions
- 概述对快速崩溃的类和函数的支持
- Dropdown bars listing classes and functions within the current document This extension has a relatively small feature set, but it's quite fast and usable. It was created as part of an experiment to provide editor features for multiple languages within a single document (PHP, HTML, and formatted documentation comments).
- 下拉栏列出了当前文档中的类和函数,这个扩展有一个相对较小的特性集,但是它非常快速和可用。它是作为实验的一部分创建的,目的是在一个文档(PHP、HTML和格式化文档注释)中为多种语言提供编辑器特性。
#9
0
the best solution for true php projects whether small or large is "Zend Studio".
对于真正的php项目,无论是小的还是大的,最好的解决方案是“Zend Studio”。
#10
0
Just use Komodo, they have both free and commercial IDE
只要使用科莫多,他们有免费和商业IDE
#11
0
komodo is the best multi platform free version out there...
komodo是目前最好的多平台免费版……
#12
0
phpDesigner7 was the best solution for PHP
phpDesigner7是PHP的最佳解决方案
#13
0
You can use PHP tools for Visual Studio:
你可以在Visual Studio中使用PHP工具:
PHP Tools for Visual Studio 2010, 2012, 2013
Visual Studio 2010, 2012, 2013的PHP工具。
#14
-1
You could use Dreamweaver. It has codehinting, dynamic error detection in code, support for most languages used on the web, support for css, html5 etc.
您可以使用Dreamweaver。它有代码提示、代码中的动态错误检测、支持web上使用的大多数语言、支持css、html5等。
#1
25
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.
Visual Studio 2010没有本地PHP支持。然而,在Visual Studio 2010中添加一些语言支持是“相对容易的”。如果您想要的只是语法突出显示、自动注释/取消注释和括号匹配,那么可以由了解新的可扩展性模型如何工作的人一次性完成。
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).
在你写完这篇文章后,我开始制作一个插件来向你展示我的意思。我下载了WordPress的源代码,只是注意到。PHP扩展是通过Expression Web 3注册的,它支持PHP(第一个图像)。
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.
我15分钟的扩展尝试(第二幅图片)不是那么令人印象深刻,但请记住,我在回答了这个问题后就开始着手做了。编辑:分别更新为颜色关键字/全局函数/全局对象。
Microsoft Expression Web for PHP http://www.280z28.org/images/vsx/ExpressionWebForPhp.png
微软的PHP表达式Web http://www.280z28.org/images/vsx/ExpressionWebForPhp.png
My PHP extension for Visual Studio 2010 http://www.280z28.org/images/vsx/Vs10SamplePhp2.png
我为Visual Studio 2010开发的PHP扩展http://www.280z28.org/images/vsx/Vs10SamplePhp2.png
#2
14
Check out CodeLobster php, it's free and has a very similar look and feel to visual studio plus it has IntelliSense and debugging support.
查看CodeLobster php,它是免费的,外观和感觉与visual studio非常相似,而且它还支持智能感知和调试。
#3
10
I would recommend PHP Tools for Visual Studio - new PHP integration for VS2010 and VS11.
我将为Visual Studio推荐PHP工具——VS2010和VS11的新PHP集成。
- syntax highlighting
- 语法高亮显示
- IntelliSense (tooltip, function assist, code completion, go to definition,...)
- 智能感知(工具提示,函数帮助,代码完成,转到定义,…)
- code navigation
- 代码导航
- custom file extensions
- 自定义文件扩展名
- integrated documentation
- 集成的文档
Its basic features are free, it is fast and stable (preferred for me)
它的基本功能是免费的,快速稳定(我更喜欢)
#4
5
As far as large projects, VS.Php 2.7 improved quite a bit in handling large projects (10000+ files)
对于大型项目,VS.Php 2.7在处理大型项目(10000+文件)方面有很大改进
Give it a try and let me know,
试一试,让我知道,
Juan
胡安
www.jcxsoftware.com
#5
2
It is not true that VS 2010 will natively support Php.
VS 2010对Php的原生支持不是真的。
AFAIK the only options are vs.php and vs.php. ;)
唯一的选项是vs.php和vs.php。,)
#6
1
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.
我的一个项目有超过30,000个文件,其中包括图像和其他项目,总共约12000个php和js脚本,VS.php查看了它并进行了倒刺。现在回到netbeans。Netbeans在支持js方面做得很棒,但我讨厌基于java的应用。他们太慢太胖了。
#7
1
Visual Studio has various types of support for PHP through the links, tools, and projects listed here but not "native" support (meaning install just Visual Studio and be able to create PHP projectsa and websites).
Visual Studio通过在这里列出的链接、工具和项目支持PHP,而不是“本地”支持(意味着安装Visual Studio并能够创建PHP projectsa和网站)。
WebMatrix, another Microsoft product (free) does have native support. You can install it via the Web Platform Installer and immediately start building PHP sites from scratch or install various PHP 3rd party solutions like WordPress, Drupal, etc.
WebMatrix是微软的另一款免费产品。您可以通过Web平台安装程序安装它,并立即开始构建PHP站点,或者安装各种PHP第三方解决方案,如WordPress、Drupal等。
WebMatrix also has pretty good support for MySQL (via the MySQL->Net connector, installable through the web platform installer, just search for MySQL in the Web PI tool). You cannot create new databases from within WebMatrix but you can create and edit tables and data once the database is created (just create the database through the mysql.exe command line).
WebMatrix也非常支持MySQL(通过MySQL->网络连接器,可以通过web平台安装程序安装,只需在web PI工具中搜索MySQL)。不能在WebMatrix中创建新的数据库,但是可以在创建数据库之后创建和编辑表和数据(只需通过mysql创建数据库)。exe命令行)。
#8
1
There is PHP Language Support, created by Sam Harwell. It has basic editing features for the PHP scripting language.
有PHP语言支持,由Sam Harwell创建。它具有PHP脚本语言的基本编辑功能。
According to it's Visual Studio Gallery page, current editing features include:
根据Visual Studio Gallery的页面,目前的编辑功能包括:
- Syntax highlighting, including support for HTML code outside PHP tags and within documentation comments
- 语法突出显示,包括对PHP标记外和文档注释内的HTML代码的支持
- Outlining support for quickly collapsing classes and functions
- 概述对快速崩溃的类和函数的支持
- Dropdown bars listing classes and functions within the current document This extension has a relatively small feature set, but it's quite fast and usable. It was created as part of an experiment to provide editor features for multiple languages within a single document (PHP, HTML, and formatted documentation comments).
- 下拉栏列出了当前文档中的类和函数,这个扩展有一个相对较小的特性集,但是它非常快速和可用。它是作为实验的一部分创建的,目的是在一个文档(PHP、HTML和格式化文档注释)中为多种语言提供编辑器特性。
#9
0
the best solution for true php projects whether small or large is "Zend Studio".
对于真正的php项目,无论是小的还是大的,最好的解决方案是“Zend Studio”。
#10
0
Just use Komodo, they have both free and commercial IDE
只要使用科莫多,他们有免费和商业IDE
#11
0
komodo is the best multi platform free version out there...
komodo是目前最好的多平台免费版……
#12
0
phpDesigner7 was the best solution for PHP
phpDesigner7是PHP的最佳解决方案
#13
0
You can use PHP tools for Visual Studio:
你可以在Visual Studio中使用PHP工具:
PHP Tools for Visual Studio 2010, 2012, 2013
Visual Studio 2010, 2012, 2013的PHP工具。
#14
-1
You could use Dreamweaver. It has codehinting, dynamic error detection in code, support for most languages used on the web, support for css, html5 etc.
您可以使用Dreamweaver。它有代码提示、代码中的动态错误检测、支持web上使用的大多数语言、支持css、html5等。