Drupal coding standards per project in Netbeans
Adhering to Drupal’s Coding Standards, caused me some headaches as I am more accustomed to slightly different coding style. But I am having a large project (In fact, it’s my full-time job now, SuperMama) that we are entirely building using Drupal, and there’s some heavy from-scratch modules developments in it.
The problem is my beloved IDE Netbeans didn’t support Drupal standards by default, some configuration needs to be done, I found a great article by Drupal’s community on how to do that here, only problem that it describes how to apply these settings globally, I wasn’t ready(and maybe will never be) to use those standards on my other freelance projects, So I was thinking of downloading another version of Netbeans, just to use the two sets of settings, one for SuperMama and the other for my freelance projects, but I was delighted to find that Netbeans supports per project formatting settings.
Here’s how to change the formatting settings per project:
1 – right-click the project name on the Projects panel, then choose properties:
2 – Click on the formatting on the left “Categories” panel:
3 – Apply the settings changes listed on the Drupal’s community guide: http://drupal.org/node/1019816