Zend Studio for Eclipse Drupal formatter
For years I've been a paying customer of Zend, using their Zend Studio Professional. They discontinued production of their custom Java version and opted to switch to making plugins for Eclipse.
I'm just now switching from the old Zend to the new one and discovered a formatter to handle all the code spacing automatically. Naturally, since I do most of my work with Drupal, I made a custom formatter file to follow coding standards for 4.7.x to 6.x. There have been some standards changes to take effect for D7, and I'm not coding for that yet, so this should be a good file for a general audience.
In your Zend for Eclipse, go to the preferences, PHP section, Formatter and Import... the attached XML file.
Don't forget to also run your code through the coder module, which will not only check your coding style, but look for upgrades, database injections, and some other cool things.
To my knowledge, PDT 2.0 doesn't have a formatter interface like Zend Studio 6 has. However, it does have another feature I insist on, removal of trailing whitespace.
Preferences - PHP - Editor - Save Actions - Remove trailing whitespace
File attachments
AttachmentSize Drupal.xml18.17 KB
Post categories