Eclipse

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 or PDT install, 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.


Syndicate content