       <p>Highlight active line           {{> @highlightActiveLine}}</p>
       <p>Show invisibles                 {{> @showInvisibles}}</p>
       <p>Use scroll past end             {{> @scrollPastEnd}}</p>
+      <p>Trim whitespaces on save        {{> @trimTrailingWhitespaces}}</p>
       <p>Enable autocomplete             {{> @enableAutocomplete}}</p>
       <p>Enable emmet                    {{> @enableEmmet}}</p>
       <p>Enable snippets                 {{> @enableSnippets}}</p>

      cssClass           : 'tiny settings-on-off'
      callback           : (state) => @emit 'SettingsChanged', 'scrollPastEnd', state

    @enableAutocomplete  = new KodingSwitch
      cssClass           : 'tiny settings-on-off'
      callback           : (state) => @emit 'SettingsChanged', 'enableAutocomplete', state

    return [
      'theme', 'useSoftTabs', 'showGutter', 'useWordWrap', 'showPrintMargin'
      'highlightActiveLine', 'showInvisibles', 'fontSize', 'tabSize'
      'keyboardHandler', 'scrollPastEnd', 'trimTrailingWhitespaces', 'openRecentFiles', 'useAutosave'
      'enableAutocomplete', 'enableSnippets', 'enableEmmet'
    ]

