Hacker News new | ask | show | jobs
by mrgoldenbrown 4798 days ago
What do you use for automatic refactoring? Are there good command line tools for renaming methods across an entire source tree for example?
1 comments

sed can do in place recursive changes for search patterns. if you use vim search and replace across a file it's pretty much the same.
I was thinking of something more context aware than a simple find/replace. If you're changing MyClass.getFoo() to MyClass.getBar(), you only want to do that on instances of MyClass.
If there is a plugin for intelligent refactoring in vim, I have yet to see it. You can use tabdo or buffdo for multiple files, but the class/object parsing isn't there.