elixir-styler icon indicating copy to clipboard operation
elixir-styler copied to clipboard

use existing aliases to rewrite subsequent unaliased references

Open novaugust opened this issue 1 year ago • 0 comments

It's not unreasonable to be working in a large file and not realize a module you're referencing is actually aliased up at the top. It'd be nice if Styler fixed this for us.

# given
alias Foo.Bar

Foo.Bar.baz()

# output
alias Foo.Bar

Bar.baz()

novaugust avatar Mar 16 '24 21:03 novaugust