Skip to main content

ast-grep VSCode

Weekly Pick

marketplace.visualstudio.com

ast-grep VSCode是一款VS Code插件,利用结构化搜索与替换技术,支持多种编程语言,提供流畅的代码搜索、替换、linting和修复功能,提升开发效率。

Developer Tools & APIs#code-search#structural-replace#linting
Visit website
ast-grep VSCode preview

正则表达式虽然强大,但在处理代码搜索和替换时,无法跨行匹配,处理嵌套结构效果不佳,且很难有效地忽略注释,使得其应用范围受限。推荐一款新VS Code插件——ast-grep VSCode,运用结构化搜索与替换(Structural Search/Replace)的技术,有效解决了这些问题。支持众多的编程语言,包括JavaScript、TypeScript、Python、Ruby、Java、C#、Go、Rust等等。它在编辑器内部直接进行SSR查询,无需切换搜索环境,让搜索替换过程更加流畅;而查询结果边执行边显示,能即时查看和编辑,大大提高了工作效率。此外,ast-grep VSCode还支持linting和代码修复功能,可以方便自定义Linter规则。* VSCode Marketplace* 视频演示| 特性 | 截图 ||----------------|-------------------------------------------------------------------------------------------------------------------|| 搜索模式 | || 替换预览 | || 代码lint | |

More in Developer Tools & APIs

SolveHub

API for CAPTCHA and anti-bot tasks in authorized testing

Dev Tools ·

liarjs.dev

Scanner that cross-checks browser JavaScript fingerprint against network layer

Dev Tools ·

AntiBrow

Antidetect browser for managing multiple browser identities with real-device

Dev Tools ·

HostlessWP

Open source CLI to move WordPress to Cloudflare Workers

Dev Tools ·

deed.page

Permanent web hosting with an API for AI agents

Dev Tools ·

Rowflare

Open-source Airtable alternative running on your Cloudflare account

Dev Tools ·