rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.51k stars 257 forks source link

auto-imports on cut/paste #245

Open davemilter opened 7 years ago

davemilter commented 7 years ago

When your lib.rs/main.rs became fat enough, you split it into modules. And this is pain in ordinal editor, because of use.

  1. You need copy/paste or cut/paste some use std:: from lib.rs/main.rs
  2. You need use use to part that stay in lib.rs

For example in java world some IDE if copy paste code automatically add necessary import and remove unnecessary.

It would be great to add such feature to rls

oli-obk commented 7 years ago

This is a sub feature of (semi)automatic application of regular suggestions