Save Actions Preferences

The Save Actions Preferences page lets you remove trailing whitespace from a file each time you save it.

The Save Actions Preferences page is accessed from Window | Preferences | PHP | Editor | Save Actions .

save_actions_preferences.png

To configure Save Actions:

  1. Mark the 'remove trailing whitespace' checkbox to enable the removal of whitespace after every save.
  2. Select whether All whitespace lines will be removed (by marking 'All lines'), or whether empty lines will be ignored (by marking 'Ignore empty lines).
  3. Click Apply to Apply your settings.

Every time you save a file, whitespace will be removed according to the configured settings.

To apply Save Actions settings to a specific project only:

  1. Click the link labelled "Configure Project Specific Settings".
  2. Select the required project from the list. A Save Actions Properties page will appear.
  3. Select the required settings and click Apply.

Note:

Save Action settings can also be configured for an existing project by right-clicking the project in Project Explorer view and selecting Properties | Save Actions.