Are there any Mac OS code editors that support code auto-formatting (a.k.a. beautifying)?

StackOverflow https://stackoverflow.com/questions/6085017

문제

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.

도움이 되었습니까?

해결책

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/

다른 팁

I like TextMate. It’s powerful and inexpensive.

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top