File tree 3 files changed +10
-4
lines changed
arduino-core/src/processing/app
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ private SketchTextArea createTextArea(RSyntaxDocument document)
148
148
textArea .setMarginLineEnabled (false );
149
149
textArea .setCodeFoldingEnabled (PreferencesData .getBoolean ("editor.code_folding" ));
150
150
textArea .setAutoIndentEnabled (PreferencesData .getBoolean ("editor.indent" ));
151
- textArea .setCloseCurlyBraces (PreferencesData .getBoolean ("editor.autocomplete" ));
151
+ textArea .setCloseCurlyBraces (PreferencesData .getBoolean ("editor.auto_close_braces" , true ));
152
152
textArea .setAntiAliasingEnabled (PreferencesData .getBoolean ("editor.antialias" ));
153
153
textArea .setTabsEmulated (PreferencesData .getBoolean ("editor.tabs.expand" ));
154
154
textArea .setTabSize (PreferencesData .getInteger ("editor.tabs.size" ));
Original file line number Diff line number Diff line change @@ -176,6 +176,13 @@ static public void unset(String attribute) {
176
176
prefs .remove (attribute );
177
177
}
178
178
179
+ static public boolean getBoolean (String attribute , boolean defaultValue ) {
180
+ if (has (attribute )) {
181
+ return getBoolean (attribute );
182
+ }
183
+
184
+ return defaultValue ;
185
+ }
179
186
180
187
static public boolean getBoolean (String attribute ) {
181
188
return prefs .getBoolean (attribute );
Original file line number Diff line number Diff line change @@ -146,9 +146,8 @@ editor.tabs.size = 2
146
146
# automatically indent each line
147
147
editor.indent = true
148
148
149
- # enable/disable any 'autocomplete' features
150
- # this currently includes 'auto curly brace'
151
- editor.autocomplete = true
149
+ # enable/disable auto-close of curly brace
150
+ editor.auto_close_braces = true
152
151
153
152
# size of divider between editing area and the console
154
153
editor.divider.size = 0
You can’t perform that action at this time.
0 commit comments