File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
arduino-core/src/processing/app Expand file tree Collapse file tree 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)
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" ));
151+ textArea .setCloseCurlyBraces (PreferencesData .getBoolean ("editor.auto_close_braces" , true ));
152152 textArea .setAntiAliasingEnabled (PreferencesData .getBoolean ("editor.antialias" ));
153153 textArea .setTabsEmulated (PreferencesData .getBoolean ("editor.tabs.expand" ));
154154 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) {
176176 prefs .remove (attribute );
177177 }
178178
179+ static public boolean getBoolean (String attribute , boolean defaultValue ) {
180+ if (has (attribute )) {
181+ return getBoolean (attribute );
182+ }
183+
184+ return defaultValue ;
185+ }
179186
180187 static public boolean getBoolean (String attribute ) {
181188 return prefs .getBoolean (attribute );
Original file line number Diff line number Diff line change @@ -146,9 +146,8 @@ editor.tabs.size = 2
146146# automatically indent each line
147147editor.indent = true
148148
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
152151
153152# size of divider between editing area and the console
154153editor.divider.size = 0
You can’t perform that action at this time.
0 commit comments