Skip to content

Commit 8ecbded

Browse files
bobcmaglie
bob
authored andcommitted
add editor.autocomplete flag to disable automatic curly braces
1 parent 39da3f0 commit 8ecbded

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/src/processing/app/EditorTab.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ private SketchTextArea createTextArea(RSyntaxDocument document)
148148
textArea.setMarginLineEnabled(false);
149149
textArea.setCodeFoldingEnabled(PreferencesData.getBoolean("editor.code_folding"));
150150
textArea.setAutoIndentEnabled(PreferencesData.getBoolean("editor.indent"));
151+
textArea.setCloseCurlyBraces(PreferencesData.getBoolean("editor.autocomplete"));
151152
textArea.setAntiAliasingEnabled(PreferencesData.getBoolean("editor.antialias"));
152153
textArea.setTabsEmulated(PreferencesData.getBoolean("editor.tabs.expand"));
153154
textArea.setTabSize(PreferencesData.getInteger("editor.tabs.size"));
@@ -599,4 +600,4 @@ public boolean requestFocusInWindow() {
599600
return textarea.requestFocusInWindow();
600601
}
601602

602-
}
603+
}

build/shared/lib/preferences.txt

+4
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ editor.tabs.size = 2
146146
# automatically indent each line
147147
editor.indent = true
148148

149+
# enable/disable any 'autocomplete' features
150+
# this currently includes 'auto curly brace'
151+
editor.autocomplete = true
152+
149153
# size of divider between editing area and the console
150154
editor.divider.size = 0
151155
# the larger divider on windows is ugly with the little arrows

0 commit comments

Comments
 (0)