Line
- 2 minutes to read
This article describes all Context Providers in the Editor | Line group. Refer to the Context Providers article for details on how to access Context Providers from the other groups.
AtBeginningOfLine
[AtBeginningOfLine([TreatSelectionAsEmptyText],[IgnoreWhitespace])]
Position | Parameter | Default Value |
---|---|---|
1 | Treat Selection as Empty Text (optional) | true |
2 | Ignore Whitespace (optional) | true |
Satisfied when the caret is at the beginning of a line. Selected text is by default ignored when determining whether the caret is at the end of a line or not. So if you have a selection starting at the end of a line and running to the middle of the line, the default behavior for this context is to be satisfied. You can change this behavior by passing “false“ as the Treat Selection as Empty Text argument.
Supported Languages: All
AtEndOfLine
[AtEndOfLine([TreatSelectionAsEmptyText])]
Position | Parameter | Default Value |
---|---|---|
1 | Treat Selection as Empty Text (optional) | true |
Satisfied when the caret is at the end of a line. Selected text is by default ignored when determining whether the caret is at the end of a line or not. So if you have a selection starting at the end of a line and running to the middle of the line, the default behavior for this context is to be satisfied. You can change this behavior by passing “false“ as the Treat Selection As Empty Text argument.
Supported Languages: All
OnEmptyLine
[OnEmptyLine]
Satisfied when the caret is on an empty line (or on a line that contains only whitespaces). Selected text is ignored when determining whether the caret is at the end of a line or not.
Supported Languages: All
OnFirstLine
[OnFirstLine]
Satisfied when the caret is on the first line of a file.
Supported Languages: All
OnLastLine
[OnLastLine]
Satisfied when the caret is on the last line of a file.
Supported Languages: All
OnOutliningStartLine
[OnOutliningStartLine]
Satisfied when the caret is on a line at which the collapsible region begins.
Supported Languages: All