php 如何使用 Visual Studio 进行 WordPress 开发?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3301780/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use Visual Studio for WordPress development?
提问by artlung
Does anyone use Visual Studio to do WordPress development? If so, how do you do it?
有没有人用 Visual Studio 做 WordPress 开发?如果是这样,你怎么做?
采纳答案by Todd Main
No built-in support for VS, and I guess there won't be, but there are some options like the answer on this threadfor Expressions. The other thing I've been looking at recently is WebMatrix- it looks promising in that it supports WordPress.
没有对 VS 的内置支持,我想不会有,但是有一些选项,例如此线程上的表达式的答案。我最近一直在研究的另一件事是WebMatrix- 它看起来很有前途,因为它支持 WordPress。
回答by GmonC
Programming for Wordpress is mainly coding css, php, html and js files. If you're asking about using Visual Studio for this scenario, I'm assuming you want a plugin that provides code hintsfor WordPress development API. Since I don't know anyone, I'm going to give you some other options.
Wordpress 的编程主要是编写 css、php、html 和 js 文件。如果您要在这种情况下使用 Visual Studio,我假设您需要一个插件,为 WordPress 开发 API提供代码提示。因为我不认识任何人,所以我会给你一些其他的选择。
Dreamweaver and CodeLobster come to mind as commercial applications. If you want something in the open source world, I recommend you a normal multi language IDE that supports PHP: the most important thing here is to use one that at least supports some kind of snippet functionality.
Dreamweaver 和 CodeLobster 是作为商业应用程序想到的。如果你想要开源世界的东西,我推荐你一个普通的支持 PHP 的多语言 IDE:这里最重要的是使用一个至少支持某种片段功能的 IDE。
That goes from Netbeansto Aptana(which is based on Eclipse) to notepad++with snippets functionality. The last one is an interesting solution since it's really lightweight but you will need to create your own snippets for Wordpress API functions and hooks.
这从Netbeans到Aptana(基于 Eclipse)再到具有代码片段功能的notepad++。最后一个是一个有趣的解决方案,因为它非常轻量级,但您需要为 Wordpress API 函数和挂钩创建自己的代码段。
I had Aptana installed in my machine in the past, but now I'm using gVim with snipmate plugin and some snippets of my own that I create when I realize I'm doing repetitive tasks.
过去我在我的机器上安装了 Aptana,但现在我使用带有 snipmate 插件的 gVim 和我自己的一些片段,当我意识到我在做重复性任务时会创建这些片段。
回答by womp
回答by Ed DeGagne
Old question, I know. But if I came looking, someone else probably will as well. :)
老问题,我知道。但如果我来找,其他人可能也会来找。:)
回答by Hymanal21
A wordpress plugin developer saying how he uses visual studio code with plugins to run his wordpress:
一位 wordpress 插件开发人员说他如何使用带有插件的 Visual Studio 代码来运行他的 wordpress:
https://deliciousbrains.com/vs-code-wordpress/
https://deliciousbrains.com/vs-code-wordpress/
He seems like he knows what he's talking about.
他似乎知道自己在说什么。

