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.
Ctrl + K ' select everything between single quotes. Ctrl + K " select everything between double quotes.
' You can put a backslash character followed by a quote ( \" or \' ). This is called an escape sequence and Python will remove the backslash, and put just the quote in the string.
Elaborating on Soldeplata's answer:
Before we start: Look up your shortcut for expanding selection by hitting Ctrl+k,Ctrl+s and search for smartselect (as it could differ with keyboard layout and installed keymap-extensions). I have two shortcuts to choose from: Shift+alt+→ or Ctrl+w
The steps (not one shortcut but a small series):
Some say: "hello";
Some say: "hello";
Some say: "";
Some say: ;
Some say: hello;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With