Editor (@Nullable PsiFile file) { EditorFactory editorFactory = EditorFactory.getInstance(); Document doc = createDocument(file); Editor editor = editorFactory.createEditor(doc, myProject); EditorSettings editorSettings = editor.getSettings(); editorSettings.setVirtualSpace(false); editorSettings.setLineMarkerAreaShown(false); editorSettings.setIndentGuidesShown(false); editorSettings.setLineNumbersShown(false); editorSettings.setFoldingOutlineShown(false); editorSettings.setAdditionalColumnsCount(3); editorSettings.setAdditionalLinesCount(3); editorSettings.setCaretRowShown(false); editor.getDocument().addDocumentListener(new DocumentListener() { @Override public void documentChanged(@NotNull DocumentEvent e) { onTextChanged(); } }, ((EditorImpl)editor).getDisposable()); ((EditorEx)editor).setHighlighter(createHighlighter()); JPanel topPanel = new JPanel(new BorderLayout(0, 5)); JPanel southPanel = new JPanel(new HorizontalLayout(40)); southPanel.add(myAdjustBox); southPanel.add(myLiveTemplateBox); topPanel.add(southPanel, BorderLayout.SOUTH); topPanel.add(editor.getComponent(), BorderLayout.CENTER); mySplitter.setFirstComponent(topPanel); return editor; }