Skip to content

TrackedRangeStickiness

原文链接

https://microsoft.github.io/monaco-editor/docs.html#enums/editor.TrackedRangeStickiness.html

描述在装饰边缘附近键入/编辑时装饰的行为。注意:请不要编辑这些值,因为它们非常小心地匹配DecorationRangeBehavior

AlwaysGrowsWhenTypingAtEdges

  • 值:0

GrowsOnlyWhenTypingAfter

  • 值:3

GrowsOnlyWhenTypingBefore

  • 值:2

NeverGrowsWhenTypingAtEdges

  • 值:1