Skip to content

resolving issue 6132 (option to enable/disable auto-curly-brace, editor.autocomplete option) #6155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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