Vannia Rajan
March 16, 2013
Aptana Studio is a complete package for an open-source Web Developer that works out of the box for the most. From autocomplete/IntelliSense, code validation, code assist, code debugging, and terminal access to version control - most activities can be accomplished in a single integrated environment. Being built upon Eclipse, it can be viewed as a web developer (HTML/CSS/JS/PHP/RoR/Python) version of Eclipse & even more than that. In fact, the studio is much faster, and sleeker than a stock Eclipse & should work fine on an average PC.
In case you're wondering if it will be a steep learning curve - to an extent, it may be. But the official documentation comes to the rescue & is an excellent guide to have a kick start.
It is assumed that you're by now ready with a working installation of Aptana Studio. If you've not yet installed it, go ahead install & getting used to it, before continuing. We suggest installing a "standalone" version as it's usually much faster & lighter on resources. Being a package that works out of the box, it's not much of a deal to tweak it for Drupal Development. I believe the documentation link above and/or the community can help resolve most of the queries of people new to Eclipse / Aptana Studio, so will cover the areas where I think there would be some tweaks required to the studio for Drupal development.
This I believe, happens automatically (since the code base of Drupal is within your Drupal projects). And it seems to work even when Drupal's codebase is marked for "Exclude from build". For some reason, if you can't get autocomplete happening - you could try adding Drupal codebase as an external PHP library (either globally or at the project level).
To add Drupal as a global external PHP library, just extract drupal onto a folder; Go to Window->Preferences->Aptana Studio->Editors->PHP->Libraries and use "New user library".
Code Assist helps us to auto-write some parts of commonly written code. For example: filling the code required for a hook implementation with the click of a command. Aptana plugins (called "Aptana Rubles") comes to the rescue here. By default, the plugin for Drupal code auto-filling is not installed - but could be quickly installed as below:
The "Drupal Ruble" plugin that we installed in the previous step does more than code assist. It can help us quickly get the Drupal API documentation for any API method.
Just select the region of API code (implementation) for which you want the API documentation - then press Ctrl+H (or right-click -> Commands -> Drupal -> Documentation for Selection). It's so convenient when you want to quickly refer to the API documentation of something you're writing without having to go through an additional Google Search (or Drupal API search).
The good thing is that the "Documentation for Selection" (that was just explained) is intelligent enough to bring up the API documentation for hook_block_info (say) - if you select a word: "{module_name}_block_info" and use the documentation for selection (Ctrl +H)... Not necessarily do you need to select the exact name of the API function?
I haven't tried these myself, but I believe it should be possible for one to do the following for automating even more of our day-to-day activities involved in Drupal web Development:
Questions/suggestions about this? Feel free to let me know through your comments below. Happy coding :)
Just like how your fellow techies do.
We'd love to talk about how we can work together
Take control of your AWS cloud costs that enables you to grow!