title: Is there a way to remove unused imports and declarations from Angular 2+?
body: <p>I'm assigned to take some messed code from other developers who have already left the company recently.</p>
  
  <p>I am curiously asking is there some plug-in of Visual Studio Code or other means that could help us to tidy and organize the imports and references quickly and effectively?</p>
  
  <p>For example, there are maybe hundreds of imports like this</p>
  
  <pre><code>import { AutoCompleteModule,InputSwitchModule } from 'primeng/primeng';
  import { ListboxModule } from 'primeng/primeng';
  </code></pre>
  
  <p>could be converted to similarily</p>
  
  <pre><code>import { AutoCompleteModule,
           InputSwitchModule,
           ListboxModule  } from 'primeng/primeng';
  </code></pre>
  
  <p>Or other functions like
  automatically removing those unused imports and declarations from the app.module or from all components through the whole project?</p>
  
  <p>Thanks for any feedback!</p>