Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/src/processing/app/EditorTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ private SketchTextArea createTextArea(RSyntaxDocument document)
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.autocomplete"));
textArea.setAntiAliasingEnabled(PreferencesData.getBoolean("editor.antialias"));
textArea.setTabsEmulated(PreferencesData.getBoolean("editor.tabs.expand"));
textArea.setTabSize(PreferencesData.getInteger("editor.tabs.size"));
Expand Down Expand Up @@ -598,4 +600,4 @@ public boolean requestFocusInWindow() {
return textarea.requestFocusInWindow();
}

}
}
4 changes: 4 additions & 0 deletions build/shared/lib/preferences.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down