Struct SnippetTabStop
- Namespace
- RDCore.SDK.Formatting
- Assembly
- RDCore.SDK.dll
A place of a snippet the cursor stops at (LSP 3.17 §Snippet Syntax, Tabstops and Placeholders): a tab stop, and the text of the snippet it is, which is its placeholder's - empty for a tab stop that has none.
public readonly record struct SnippetTabStop : IEquatable<SnippetTabStop>
- Implements
- Inherited Members
Constructors
SnippetTabStop(int, int, int, int)
A place of a snippet the cursor stops at (LSP 3.17 §Snippet Syntax, Tabstops and Placeholders): a tab stop, and the text of the snippet it is, which is its placeholder's - empty for a tab stop that has none.
public SnippetTabStop(int Index, int Start, int Length, int Parent = -1)
Parameters
IndexintIts number: the cursor goes from one to the next in their order, and
0, where the cursor is once the snippet is done, last. The places that have the same number are the same tab stop, which an editor changes together.StartintWhere it is in Text.
LengthintHow long its placeholder is in Text.
ParentintThe place of the placeholder that holds it, by where that one is in TabStops;
-1when it is in none. A place in another is in its text whatever is typed there, and goes with it when that text is typed over.
Properties
Index
Its number: the cursor goes from one to the next in their order, and 0, where the cursor is once the snippet is done, last. The places that have the
same number are the same tab stop, which an editor changes together.
public int Index { get; init; }
Property Value
Length
How long its placeholder is in Text.
public int Length { get; init; }
Property Value
Parent
The place of the placeholder that holds it, by where that one is in TabStops; -1 when it is in none. A place in another is in
its text whatever is typed there, and goes with it when that text is typed over.
public int Parent { get; init; }
Property Value
Start
Where it is in Text.
public int Start { get; init; }