Implement search and replace using native VS Code #336
Steve-Sexton
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed that AI often uses diffs to edit files, but in some cases, a straightforward search-and-replace approach would be more efficient. For example, if you need to replace every instance of "username" with "user_id" throughout a document, a simple replace-all operation would be faster and less token-intensive than generating a detailed diff for each occurrence. Similarly, if you're updating a version number, such as changing "v1.0.0" to "v1.1.0" across a configuration file, a global search-and-replace would eliminate the need for line-by-line edits. Allowing the AI to choose between these methods could save time, reduce back-and-forth interactions, and conserve tokens.
Beta Was this translation helpful? Give feedback.
All reactions