是否有支持代码自动格式化(又名美化)的 Mac OS 代码编辑器?
到目前为止,我对 Espresso 印象深刻,但它似乎没有提供任何自动格式化(通过它我被 Visual Studio 宠坏了)。 Mac 上有支持此功能的通用代码编辑器吗?具体来说,我对 PHP 和 JavaScript 感兴趣,但很想知道可能存在的任何选项。
So far I'm really impressed with Espresso, but it doesn't seem to offer any auto-formatting (by which I'm spoiled by Visual Studio). Are there any general code editors for Mac that support this? Specifically I'm interested in PHP and JavaScript, but curious to know about any options that might exist.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我发现 Dreamweaver 是 Mac 上一个很棒的 PHP 和 Javascript 开发平台。我不确定您是否有权访问它,但如果有可能,至少试运行一下。它具有代码突出显示等功能,使编码变得更加容易。然而,价格确实对大多数人来说是一个问题。
在这种情况下,您可以尝试 BBEdit。我从了解的人那里听说过一些好消息,但我个人没有使用过它(我通过我的公司拥有 Dreamweaver)。它可以自动完成和一些其他的好东西。它只花费 99 美元,所以还不错。以下是该网站的链接:
http://www.barebones.com/products/bbedit/
I've found Dreamweaver to be a great development platform on the Mac for PHP and Javascript. I'm not sure if you have access to it, but if it is a possibility, at least give it a test run. It does code highlighting, etc. that makes it much easier to code. The price, however, does make it a problem for most people.
In that case, you could try BBEdit. I've heard good things from people who would know but I personally have not used it (I have Dreamweaver through my company). It does auto-complete and a bunch of other nice things. It only costs $99 so it isn't too bad. Here is the link to the site:
http://www.barebones.com/products/bbedit/
我喜欢 TextMate。它功能强大且价格低廉。
I like TextMate. It’s powerful and inexpensive.
我可能从这个答案中找到了一个很好的答案,Aptana Studio。看起来它是免费/开源的、多平台的,并且支持 JavaScript 和 PHP 等代码格式化。
我会尝试一下并将结果发回!
更新:虽然该应用程序还不错并且确实提供了一些方便的格式,但不幸的是它很笨拙并且有一些非常烦人的界面行为(例如代码完成不会消失并出现在最糟糕的时间)和一个可怕的选项对话框,所以它不是一个理想的解决方案。
I may have found a good one from this answer, Aptana Studio. Looks like it's free/open-source, multi-platform, and supports code formatting for things like JavaScript and PHP.
I'll try it out and post back the results!
Update: While the app is okay and does offer some handy formatting, it's unfortunately clumsy and has some really annoying interface behavior (like code completion that won't go away and appears at the worst possible times) and a horrible options dialog, so it's not an ideal solution.