> For the complete documentation index, see [llms.txt](/llms.txt).
> The full corpus is at [llms-full.txt](/llms-full.txt).

# getCaretWordSelection

> `const` **getCaretWordSelection**: `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