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

      <p>Highlight active line           {{> @highlightActiveLine}}</p>
      <p>Show invisibles                 {{> @showInvisibles}}</p>
      <p>Use scroll past end             {{> @scrollPastEnd}}</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

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

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