template-string-converter icon indicating copy to clipboard operation
template-string-converter copied to clipboard

Add trigger when pasting ${} inside a string

Open younesaassila opened this issue 4 years ago • 2 comments

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

younesaassila avatar Dec 22 '20 18:12 younesaassila

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?

meganrogge avatar Dec 22 '20 21:12 meganrogge

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.

younesaassila avatar Dec 22 '20 21:12 younesaassila