You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to replace strings surrounded by ' with ".
In Vim, I can do this:
%s/\'\([a-zA-Z-_]\+\)\'/"\1"/g
Which will change the input asd 'as-d_ad' asd to asd "as-d_ad" asd
In this extension, nothing happens. It can't find the match. I think this is related to the fact that some characters here aren't metacharacters even though they are in Vim and vice versa.
I tried something like this which did find the pattern, but it's replacing it with the literal "\1":
%s/'([\w-_]+)'/"\1"/g
Extension (VsCodeVim) version: 1.3.0
VSCode version: 1.32.1
OS: Windows 10
The text was updated successfully, but these errors were encountered:
I'm trying to replace strings surrounded by
'
with"
.In Vim, I can do this:
Which will change the input
asd 'as-d_ad' asd
toasd "as-d_ad" asd
In this extension, nothing happens. It can't find the match. I think this is related to the fact that some characters here aren't metacharacters even though they are in Vim and vice versa.
I tried something like this which did find the pattern, but it's replacing it with the literal
"\1"
:The text was updated successfully, but these errors were encountered: