Auto-Import
Auto-Import copied to clipboard
Wasn't working when first installed.
I had just installed vscode on OS X Sierra and was working on a component. I did not yet have this plugin installed.
Here's the code:
import { Input, Component } from '@angular/core';
import {Account} from "./account";
@Component({
selector: 'account-info',
template: `
<div>{{account.companyName}}</div>
<div>{{account.address}}</div>
<div>{{account.}}</div>
`
})
export class AccountInfoComponent implements OnInit {
@Input() account: Account;
}
I installed this plugin, reloaded VSCode and tried to use the autocomplete feature to import OnInit.
The context menu showed up and displayed two options.

Nothing happened when I pressed enter on either one or clicked on either one.
I had to erase this line before the plugin would start working.
import { Input, Component } from '@angular/core';
@bjohnson-va How to get a context menu? AutoImport extension not working for me. I have raised question here - https://github.com/soates/Auto-Import/issues/44
@sanket360 I used alt-enter while my keyboard cursor was placed within OnInit
@sanket360 , are you using mac OS?
No @vlio20... I am on windows
@bjohnson-va thanks for reply but alt-enter while my keyboard cursor was placed within OnInit doesnt work for me. As per demo, it should show yellow light bulb on move hover.