Monday, May 20, 2024
162
rated 0 times [  165] [ 3]  / answers: 1 / hits: 33608  / 8 Years ago, wed, november 16, 2016, 12:00:00

Is there any shortcut or extension for vscode which can help to remove surrounded quotes (single ' or double ) around a selected text?

See example below



'hello' ==> hello



In other words, is it possible to have a feature which will toggle current selection between quotes and no quotes?



I have tried es quotes for vscode which is very nice while switching the quotes between single and double quotes.


More From » visual-studio-code

 Answers
5

There is this extension that lets you do some tricks with selections between quotes. You can toggle between simple and double quotes, and you can select whatever is inside some quotes.



The most approximate solution which I found is to select all with the shortcut (Ctrl+k, `), then cut, erase the quotes and then paste the text.



That's the best I found


[#60044] Sunday, November 13, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
marisela

Total Points: 103
Total Questions: 105
Total Answers: 102

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
;