Source:
<code>private SketchTextArea createTextArea(RSyntaxDocument document) throws IOException { final SketchTextArea textArea = new SketchTextArea(document, editor.base.getPdeKeywords()); textArea.setName("editor"); textArea.setFocusTraversalKeysEnabled(false); textArea.setMarkOccurrences(PreferencesData.getBoolean("editor.advanced")); textArea.setMarginLineEnabled(false); textArea.setCodeFoldingEnabled(PreferencesData.getBoolean("editor.code_folding")); textArea.setAutoIndentEnabled(PreferencesData.getBoolean("editor.indent")); <START> textArea.setCloseCurlyBraces(PreferencesData.getBoolean("editor.indent")); <END> textArea.setAntiAliasingEnabled(PreferencesData.getBoolean("editor.antialias")); textArea.setTabsEmulated(PreferencesData.getBoolean("editor.tabs.expand")); textArea.setTabSize(PreferencesData.getInteger("editor.tabs.size")); textArea.addHyperlinkListener(evt -> { try { UpdatableBoardsLibsFakeURLsHandler boardLibHandler = new UpdatableBoardsLibsFakeURLsHandler(editor.base); boardLibHandler.openBoardLibManager(evt.getURL()); } catch (Exception e) { try { editor.platform.openURL(editor.getSketch().getFolder(), evt.getURL().toExternalForm()); } catch (Exception f) { Base.showWarning(f.getMessage(), f.getMessage(), f); } } }); textArea.addCaretListener(e -> { Element root = textArea.getDocument().getDefaultRootElement(); int lineStart = root.getElementIndex(e.getMark()); int lineEnd = root.getElementIndex(e.getDot()); editor.lineStatus.set(lineStart, lineEnd); }); ToolTipManager.sharedInstance().registerComponent(textArea); configurePopupMenu(textArea); return textArea; }</code><technical_language>this a separate preference? I personally dislike autocompletion, I do want (same-level) auto indent (i.e. pressing enter preserves indentation of previous line, increase indentation a { for me)</technical_language>

Target:
private SketchTextArea createTextArea(RSyntaxDocument document) throws IOException { final SketchTextArea textArea = new SketchTextArea(document, editor.base.getPdeKeywords()); textArea.setName("editor"); textArea.setFocusTraversalKeysEnabled(false); textArea.setMarkOccurrences(PreferencesData.getBoolean("editor.advanced")); textArea.setMarginLineEnabled(false); textArea.setCodeFoldingEnabled(PreferencesData.getBoolean("editor.code_folding")); textArea.setAutoIndentEnabled(PreferencesData.getBoolean("editor.indent")); textArea.setCloseCurlyBraces(PreferencesData.getBoolean("editor.auto_close_braces", true)); textArea.setAntiAliasingEnabled(PreferencesData.getBoolean("editor.antialias")); textArea.setTabsEmulated(PreferencesData.getBoolean("editor.tabs.expand")); textArea.setTabSize(PreferencesData.getInteger("editor.tabs.size")); textArea.addHyperlinkListener(evt -> { try { UpdatableBoardsLibsFakeURLsHandler boardLibHandler = new UpdatableBoardsLibsFakeURLsHandler(editor.base); boardLibHandler.openBoardLibManager(evt.getURL()); } catch (Exception e) { try { editor.platform.openURL(editor.getSketch().getFolder(), evt.getURL().toExternalForm()); } catch (Exception f) { Base.showWarning(f.getMessage(), f.getMessage(), f); } } }); textArea.addCaretListener(e -> { Element root = textArea.getDocument().getDefaultRootElement(); int lineStart = root.getElementIndex(e.getMark()); int lineEnd = root.getElementIndex(e.getDot()); editor.lineStatus.set(lineStart, lineEnd); }); ToolTipManager.sharedInstance().registerComponent(textArea); configurePopupMenu(textArea); return textArea; }