Vim: snippets placeholder transform not working
Describe the bug snippets placeholder transform not working
To Reproduce
"HelloWorld": {
"prefix": "test",
"body": "${1} ${2} -> ${1/Hello/Hallo/} ${2/World/Welt/}"
}
type Hello World -> Hello World
Expected behavior Hello World -> Hallo Welt
it’s work after disable vim plugin!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 40
- Comments: 24 (4 by maintainers)
I found a workaround that makes it much less annoying: In the keybindings for the command “extension.vim_backspace” add to the When clause “!editorHasSelection”.
This allows you to press backspace and delete the things that are automatically highlighted during the snippet process.
The only downside is if you had anything hooked up to backspace in Visual Mode it will no longer work.
Issue still seems to be happening, vim enters visual mode and you can’t use the snippet properly
I have the same problem. After uninstall this extension, the snippets seems to be working again. To reproduce, create multiple same variable in snippets like console.log(${variable1}, ${variable1}). Whenever you want to enter something at the variable, it will fail.