Table of Contents

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

Index int

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.

Start int

Where it is in Text.

Length int

How long its placeholder is in Text.

Parent int

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.

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

int

Length

How long its placeholder is in Text.

public int Length { get; init; }

Property Value

int

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

int

Start

Where it is in Text.

public int Start { get; init; }

Property Value

int