InsertTextMode
in package
AbstractYes
How whitespace and indentation is handled during completion item insertion.
Tags
Table of Contents
Constants
- ADJUST_INDENTATION = 2
- The editor adjusts leading whitespace of new lines so that they match the indentation up to the cursor of the line for which the item is accepted.
- AS_IS = 1
- The insertion or replace strings is taken as it is. If the value is multi line the lines below the cursor will be inserted using the indentation defined in the string value.
Constants
ADJUST_INDENTATION
The editor adjusts leading whitespace of new lines so that they match the indentation up to the cursor of the line for which the item is accepted.
public
mixed
ADJUST_INDENTATION
= 2
Consider a line like this: <2tabs>
AS_IS
The insertion or replace strings is taken as it is. If the value is multi line the lines below the cursor will be inserted using the indentation defined in the string value.
public
mixed
AS_IS
= 1
The client will not apply any kind of adjustments to the string.