void () { EditorEx editor = getEditor(); JScrollPane scrollPane = editor.getScrollPane(); editor.setBorder(JBUI.Borders.empty()); editor.getMarkupModel().removeAllHighlighters(); editor.getGutterComponentEx().setPaintBackground(false); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); EditorSettings settings = editor.getSettings(); settings.setLineNumbersShown(true); settings.setAdditionalLinesCount(0); settings.setLineCursorWidth(1); settings.setDndEnabled(false); settings.setUseSoftWraps(false); }