Skip to content

Commit cbfbc6d

Browse files
Clarify that $0 should not use any other snippet syntax (#2087)
Co-authored-by: Dirk Bäumer <[email protected]>
1 parent 7c79d23 commit cbfbc6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_specifications/lsp/3.18/language/completion.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,9 @@ The `body` of a snippet can use special constructs to control cursors and the te
879879

880880
##### Tab stops
881881

882-
With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited, whereas `$0` denotes the final cursor position. Multiple tab stops are linked and updated in sync.
882+
With tab stops, you can make the editor cursor move inside a snippet. Use `$1`, `$2`, and so on to specify cursor locations. The number is the order in which tab stops will be visited. Multiple tab stops are linked and updated in sync.
883+
884+
The `$0` tab stop denotes the final cursor position. This tab stop should not be combined with other snippet syntax - placeholders, choices, variables or transforms - it should only take the form `$0`.
883885

884886
##### Placeholders
885887

0 commit comments

Comments
 (0)