vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Bug report: The `new` snippets use the wrong format of ${0}

Open doggy8088 opened this issue 3 years ago • 0 comments

Code snippets in VSCode should treat $0 as a ending position. Some of the snippets such as new use $0 as a replacement which is wrong.

https://github.com/redhat-developer/vscode-java/blob/3ad9749dd8edd63ee4f2e887ec7142a3874e3659/snippets/java.json#L100-L106

Also, some snippets (see below) use {0:TODO} as a replacement which is not handy for coding.

https://github.com/redhat-developer/vscode-java/blob/5fa5fbcda04e15e4c60738478c774f89109843b7/snippets/java.json#L20-L40

doggy8088 avatar Jul 31 '22 18:07 doggy8088