Skip to content

Enum

Enum.CompletionAcceptanceBehavior

Controls how the Script Editor inserts or replaces text when an autocomplete suggestion is accepted with Enter or Tab.

Official docs ↗
ItemValueSummary
Enum.CompletionAcceptanceBehavior.Insert0Accepting a completion with either Enter or Tab inserts the suggestion without replacing existing text after the cursor.
Enum.CompletionAcceptanceBehavior.Replace1Accepting a completion with either Enter or Tab replaces existing text after the cursor with the full suggestion text.
Enum.CompletionAcceptanceBehavior.ReplaceOnEnterInsertOnTab2Pressing Enter replaces existing text after the cursor; pressing Tab inserts without replacing text after the cursor.
Enum.CompletionAcceptanceBehavior.InsertOnEnterReplaceOnTab3Pressing Enter inserts without replacing text after the cursor; pressing Tab replaces text after the cursor. This is the default of Studio.AutocompleteAcceptanceBehavior.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com.