Configure PHP Development Tools (PDT) for Drupal Development
- Select the Window > Preferences menu option
- Add Drupal PHP Content Types
- Select the General > Content Types left column option
- Select the Text > PHP Content Type option
- Add the following file associations below
*.engine
*.theme
*.install
*.inc
*.module
*.profile
- Modify space/tab settings
- Select the PHP > Code Style > Formatter left column option
- Set the following options
Tab policy: Spaces
Indentation size: 2
- Click the OK button