The Save Actions Properties page allows you to remove trailing whitespace from a file each time you save it.
To access the Save Actions Properties page, right-click a PHP project in Project Explorer view and select Properties | Resource -or- select the project and from the menu bar go to Project | Properties | Save Actions Properties .
To configure Save Actions Properties for the project:
Default Save Actions Properties for all projects can be set in the Save Actions Preferences page (accessed by going to Window | Preferences | PHP | Editor | Save Actions -or- by clicking the Configure Workspace Settings link on the properties page.)