Configure PHP Development Tools (PDT) for Drupal Development

  1. Select the Window > Preferences menu option
  2. Add Drupal PHP Content Types
    1. Select the General > Content Types left column option
    2. Select the Text > PHP Content Type option
    3. Add the following file associations below
  3. Modify space/tab settings
    1. Select the PHP > Code Style > Formatter left column option
    2. Set the following options
      Tab policy: Spaces
      Indentation size: 2
  4. Click the OK button

Open Source Software: