-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【工具自荐】ast-grep VSCode——更智能、更方便的代码搜索替换工具 #4100
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
正则表达式虽然强大,但在处理代码搜索和替换时,无法跨行匹配,处理嵌套结构效果不佳,且很难有效地忽略注释,使得其应用范围受限。
推荐一款新VS Code插件——ast-grep VSCode,运用结构化搜索与替换(Structural Search/Replace)的技术,有效解决了这些问题。
支持众多的编程语言,包括JavaScript、TypeScript、Python、Ruby、Java、C#、Go、Rust等等。它在编辑器内部直接进行SSR查询,无需切换搜索环境,让搜索替换过程更加流畅;而查询结果边执行边显示,能即时查看和编辑,大大提高了工作效率。
此外,ast-grep VSCode还支持linting和代码修复功能,可以方便自定义Linter规则。
The text was updated successfully, but these errors were encountered: