void () { EditorSettingsExternalizable settings = EditorSettingsExternalizable.getInstance(); settings.setRemoveTrailingBlankLines(true); settings.setEnsureNewLineAtEOF(false); configureFromFileText( "x.txt", "xxx\nyyy\n\n\n\n\n\n\n<caret>\n" ); type(' '); FileDocumentManager.getInstance().saveAllDocuments(); checkResultByText( "xxx\nyyy<caret>" ); }