{"repo":"ast-grep/ast-grep-vscode","free":true,"listed":false,"github":"https://github.com/ast-grep/ast-grep-vscode","clone":"git clone https://github.com/ast-grep/ast-grep-vscode.git","description":"ast-grep VSCode is a structural search and replace extension for many languages.","language":"TypeScript","stars":240,"topics":["ast","linter","search-replace","structural-search","vscode","vscode-extension"],"license":"MIT","category":"dev-tools","readme_excerpt":"ast-grep VSCode ast-grep VSCode, a structural search and replace extension. It uses ASTs to find and modify code patterns. No more tedious and error-prone text manipulation. Introduction Have you ever spent hours trying to find and replace a code pattern using plain text or regular expressions? If so, you know how tedious and error-prone it can be. However, there is a better way to do this: Structural Search and Replace , a technique that allows you to find and modify code patterns based on their syntax and semantics, not just their text. ast-grep is a structural search/replace tool that uses abstract syntax trees (ASTs) to represent the syntax and structure of your code, and lets you write patterns as if you are writing ordinary code. It can help you search and replace code elements more precisely and efficiently than using regular expressions or plain text. You can also use ast-grep to perform linting and rewriting tasks, and write your own rules using YAML configuration. Features The ast-grep VSCode is an extension to bridge the power of ast-grep and the beloved editor VSCode. It includes two parts: a UI for ast-grep CLI and a client for ast-grep LSP. Code search Use pattern to structural search your codebase. Feature Screenshot -- -- Search Pattern Search YAML Search In Folder Code Replace Use pattern to replace matching code. Replace Preview Commit Replace -- -- Code Linting and Actions(\\ ) Require LSP setup Code linting and code actions require setting up sgconfig.yml i","default_branch":null,"files":null,"tree":[],"storefront":"/r/ast-grep","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ast-grep/ast-grep-vscode/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}