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
Replace text does not yet support taking groups arguments from search text. But I agree this is a parity issue with local find. Will try to get this soon. Thanks
I hope the replace term $& can be supported, which is just the word it matches. I know I can do this by grouping the search word with brackets(like ([^\s])), and make the replace term like $1, but it's more troublesome. Thanks. @sandy081
Steps to Reproduce:
File contents:
CTRL+SHIFT+H
let\s+(\w+)\s*=\s*require\s*\(\s*['"]([\w\.\-/]+)\s*['"]\s*\)\s*;
import * as $1 from '$2';
Issue:
When replacing, the file looks like this:
Expected
Note: This works using Local Search&Replace (
CTRL+H
).The text was updated successfully, but these errors were encountered: