public enum InsertTextMode extends java.lang.Enum<InsertTextMode>
Since 3.16.0
| Enum Constant and Description |
|---|
AdjustIndentation
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.
|
AsIs
The insertion or replace strings is taken as it is.
|
| Modifier and Type | Method and Description |
|---|---|
static InsertTextMode |
forValue(int value) |
int |
getValue() |
static InsertTextMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InsertTextMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InsertTextMode AsIs
public static final InsertTextMode AdjustIndentation
Consider a line like this: [2tabs][cursor][3tabs]foo. Accepting a multi line completion item is indented using 2 tabs and all following lines inserted will be indented using 2 tabs as well.
public static InsertTextMode[] values()
for (InsertTextMode c : InsertTextMode.values()) System.out.println(c);
public static InsertTextMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static InsertTextMode forValue(int value)