This page is available as Markdown at /api/selectors/variables/getcaretwordselection.md.
For the full documentation index, see /llms.txt, or
the complete corpus at /llms-full.txt.
getCaretWordSelection
constgetCaretWordSelection:EditorSelector<EditorSelection>
Defined in: selector.get-caret-word-selection.ts:23
Returns the selection of the of the word the caret is placed in. Note: Only returns a word selection if the current selection is collapsed