add editor.autocomplete flag to disable automatic curly braces

This commit is contained in:
bob 2017-04-05 06:41:52 -07:00 committed by Cristian Maglie
parent 39da3f0867
commit 8ecbded312
2 changed files with 6 additions and 1 deletions

View File

@ -148,6 +148,7 @@ public class EditorTab extends JPanel implements SketchFile.TextStorage {
textArea.setMarginLineEnabled(false);
textArea.setCodeFoldingEnabled(PreferencesData.getBoolean("editor.code_folding"));
textArea.setAutoIndentEnabled(PreferencesData.getBoolean("editor.indent"));
textArea.setCloseCurlyBraces(PreferencesData.getBoolean("editor.autocomplete"));
textArea.setAntiAliasingEnabled(PreferencesData.getBoolean("editor.antialias"));
textArea.setTabsEmulated(PreferencesData.getBoolean("editor.tabs.expand"));
textArea.setTabSize(PreferencesData.getInteger("editor.tabs.size"));
@ -599,4 +600,4 @@ public class EditorTab extends JPanel implements SketchFile.TextStorage {
return textarea.requestFocusInWindow();
}
}
}

View File

@ -146,6 +146,10 @@ editor.tabs.size = 2
# automatically indent each line
editor.indent = true
# enable/disable any 'autocomplete' features
# this currently includes 'auto curly brace'
editor.autocomplete = true
# size of divider between editing area and the console
editor.divider.size = 0
# the larger divider on windows is ugly with the little arrows