Synvert vscode extension provides a find / replace alternative based on AST nodes.
Why do you need Synvert?
It's more accurate. e.g. it can find parameters in function declaration in typescript but ignore the arguments in function call.
It's more powerful. e.g. it can find all unused imports in typescript and remove them.
- Search and replace. After adding a snippet, you can search the code, and replace all or any of the results.
- Search a snippet. You can search a snippet by group, name or description.
- Generate a snippet. You can generate a snippet by some input codes and output codes.
- Adopt a short snippet. You can write a short snippet without
Ruby is supported by
This extension contributes the following settings:
synvert.ruby.enable: enable/disable synvert ruby, default is true.
synvert.ruby.number_of_workers: number of workers to run synvert ruby, default is 4.
cmd+shift+s: open synvert sidebar view.
Synvert vscode extension searches based on AST nodes, so it's slower than than the traditional find / replace.
But we are still in active development to improve the performance.