template-string-converter
template-string-converter copied to clipboard
Add trigger when pasting ${} inside a string
Hi! Thank you for your extension. It's super useful! I do have a feature suggestion to hopefully make it even better:
The extension currently does not trigger on paste events, thus not converting strings to template strings after pasting a character sequence containing "${}
". I think adding a paste event trigger would be a nice addition to fix this issue.
Extension version: 0.4.4 VS Code version: 1.52.1
Hey! Glad you like it and thanks for the suggestion. I considered doing something for paste, but thought it would be a super rare use case.
Can you give me an example you've encountered where this feature would be useful?
I don't have any specific example in mind, but I find myself copy-pasting parts of existing strings with ${} around quite a lot when refactoring, and that's when I notice this lack of support for paste the most, but it's definitely not a huge problem. It would just be a nice addition to make the extension feel more complete.