How to automatically import modules [Angular 2+]


The problem is that when you type
export class Car implements OnInit

And I have to do this every time with my hands
import { Component OnInit } from '@angular/core'

I’ve tried several packages, but nothing happened. I want to ask you how you solve this problem?

Well, and those who write on Angular. What packages you are use, that be simplify your life?


How would this work? Is there a reference people can use to understand what you are expecting?


I found this package angular-auto-import

But for now it’s only beta, and it works badly. I hope that the developer will continue to develop

Also, you can see what I mean