4 ms·
Okay wow. I didn't tools like this existed! There's been more than once where I've found myself in a situation like "find all code like this, change if this, de
by kretaceous 4y ago
Okay wow. I didn't tools like this existed! There's been more than once where I've found myself in a situation like "find all code like this, change if this, delete if this". Regex can only get you so far.
Does someone know if this or something similar is available as a VSCode extension? It'd be fun to make one if not!
- ducktective 4y agolanguage-server methods like rename
- kretaceous 4y agoYes. I regularly use this feature sky-high I was looking for something more advanced as vanesa- spoke in the sibling comment.
- kretaceous 4y ago- sky-high + but Swiping fiasco. When do we get the edit comment feature in HN? :)
- vore 4y agoYou should be able to edit comments within 2? hours of posting. Maybe this link works for you? https://news.ycombinator.com/edit?id=31417626 https://news.ycombinator.com/edit?id=31417626
- vanesa- 4y agoSourcegraph Community Manager here. You can use the Sourcegraph extension for VSCode [1] that would allow you to have the structural search powered by Comby (or literal or regular expression search) inside of VSCode. You can't do batch changes[2] inside of VSCode yet, only via the Sourcegraph CLI[3]. We're working on expanding this. [1] https://marketplace.visualstudio.com/items?itemName=sourcegraph.sourcegraph https://marketplace.visualstudio.com/items?itemName=sourcegr... [2] https://docs.sourcegraph.com/batch_changes/explanations/introduction_to_batch_changes https://docs.sourcegraph.com/batch_changes/explanations/intr... [3] https://docs.sourcegraph.com/cli https://docs.sourcegraph.com/cli
- kretaceous 4y agoThanks for letting me know. I'll try it right away.
- horlux 4y agoanything similar for vim?
- vanesa- 4y agoWe don't have an extension for Vim yet, but you can use Sourcegraph CLI[1] in your terminal. Feel free to file a feature request[2] though, which should help bump up the prioritization of a proper Vim extension. [1] https://docs.sourcegraph.com/cli https://docs.sourcegraph.com/cli [2] https://github.com/sourcegraph/sourcegraph/issues/new?assignees=&labels=&template=feature_request.md&title= https://github.com/sourcegraph/sourcegraph/issues/new?assign...