Which D IDE do you use?(survey)
Idan Arye via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 10 12:34:35 PDT 2015
On Friday, 10 April 2015 at 19:19:38 UTC, Adam D. Ruppe wrote:
> On Friday, 10 April 2015 at 19:08:13 UTC, Paulo Pinto wrote:
>> - Move a method to another class located in another module,
>> while updating all references to it, including module imports
>> in the new file
>
> Cut the text out of one file, paste it in the new one, compile
> and fix what the compiler complains about.
>
> ...ditto for the others.
>
>
> I admit this takes a few more minutes than an automatic ide
> thing might, but it isn't that big of a bother to me because
> the compiler errors combined with vim's "repeat last command"
> hotkey makes it fairly quick and painless. When I run make from
> inside vim, it jumps to the file and line the compiler spits
> out, so I can do a quick "cwnewname" then f4 (my hotkey to go
> to the next error) and ., repeat until done.
This - and also the fact that Vim's macros combine very well with
modal editing. It's very easy to record a macro that does that
specific refactoring bit in a specific place, and then jumps to
the next place. After that, it's simply a matter of running that
macro over and over until the refactor is done.
More information about the Digitalmars-d
mailing list