void () { EditorSettingsExternalizable settings = EditorSettingsExternalizable.getInstance(); settings.setStripTrailingSpaces(EditorSettingsExternalizable.STRIP_TRAILING_SPACES_WHOLE); settings.setKeepTrailingSpacesOnCaretLine(false); configureFromFileText( "x.txt", "xxx <caret>\nyyy " ); type(' '); backspace(); EditorTestUtil.executeAction( getEditor(), "SaveAll" ); checkResultByText( "xxx<caret>\nyyy" ); }