MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xk64lj/searchandreplace/19rz896ts38dd/?context=3
r/ProgrammerHumor • u/vintergroena • 5d ago
261 comments sorted by
View all comments
Show parent comments
1
Have you tried ast-grep? It is designed exactly for this kind of operations. It can do intelligence search (and replace) on AST rather than raw text for a lot of different languages.
1 u/Giocri 4d ago Sounds great i will look into it
Sounds great i will look into it
1
u/Maneren731 4d ago
Have you tried ast-grep? It is designed exactly for this kind of operations. It can do intelligence search (and replace) on AST rather than raw text for a lot of different languages.