Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

SyntaxColoring.AutoCompleteVariables.SetEnabled

Sets whether to do auto completion for calculation dialogs.

Component Version macOS Windows Linux Server iOS SDK
SyntaxColoring 12.0 ✅ Yes ❌ No ❌ No ❌ No ❌ No
MBS( "SyntaxColoring.AutoCompleteVariables.SetEnabled"; Value )   More

Parameters

Parameter Description Example
Value The new setting.
Pass 1 to enable or 0 to disable.
1

Result

Returns OK or error.

Description

Sets whether to do auto completion for calculation dialogs.
MBS Plugin searches the script upwards for up to 500 lines (see SyntaxColoring.CheckVariableDeclaration.SetLimits) to find variable declarations.
This includes Set Variable script step, various Insert script steps and special comments with @variable, @parameter or @constant prefixes. We then assemble a list of possible variable names to present when you type a $ symbol in your calculation dialog.

Typing an underscore character seems to complete the word right away and may lead to an extra underscore character, which you need to remove manually.

For custom functions or specify output file dialog, you need to manually trigger auto complete. This seems to happen with Option-ESC shortcut on macOS Sonoma and with F5 in older versions (if dictation is off).

Examples

Enable it:

Set Variable [ $r; Value: MBS( "SyntaxColoring.AutoCompleteVariables.SetEnabled"; 1 ) ]

Disable Auto Complete:

Set Variable [ $r; Value: MBS( "SyntaxColoring.AutoCompleteVariables.SetEnabled"; 0 ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 1st December 2021, last changed 22nd January 2024


SyntaxColoring.AutoCompleteVariables.GetEnabled - SyntaxColoring.CheckVariableDeclaration.Disable