Which tools do you use to refactor your codebase?

Marco Leise via Digitalmars-d-ide digitalmars-d-ide at puremagic.com
Mon Feb 1 09:25:09 PST 2016


Am Tue, 26 Jan 2016 22:42:49 +0000
schrieb maik klein <maikklein at googlemail.com>:

> struct Foo{
>      void bar(){
>      }
> }
> 
> auto f = Foo();
> f.bar();
> 
> For example you decide that 'bar' was a very poor choice for a 
> name but you have already used it in many different files and 
> manually changing ever occurrence is very annoying.
> 
> You also can't really make a global substitution (for example 
> with vim regex) because other types may also have a method called 
> 'bar'.
> 
> Is there anything for D to help refactor names for types, 
> functions, variables etc?

In Mono-D I press F2 and type the new name.

-- 
Marco



More information about the Digitalmars-d-ide mailing list