({{, "TemplateSelection"
is a front end token that inserts a function template to the right of the insertion point.}})

OpenersNotesSection(Spacer1)Details

"TemplateSelection" is equivalent to (MenuGrayLink[Edit, paclet:guide/EditMenu]) ▶ (MenuGrayLink[Make Template, paclet:ref/menuitem/MakeTemplate]).

When you use "TemplateSelection" after typing a partial function name, the Wolfram System looks to the left of the insertion point to find a suitable function or variable name. When this name is not a defined function, "CompleteSelection" applies before attempting to make a function template.

A typical use is (RefLink[FrontEndExecute, paclet:ref/FrontEndExecute])[(RefLink[FrontEndToken, paclet:ref/FrontEndToken])["TemplateSelection"]].

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Front End Tokens:  (RefLink[CompleteSelection, paclet:ref/frontendobject/CompleteSelection])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Tokens Related to the Edit Menu, paclet:guide/EditTokens])}})}})