admin管理员组

文章数量:1330166

I would like to know if there is any possibility to get a similar Codepletion / Autoplete in Atom like it is Webstorm.

Right now I am trying to get used to typescript and I really like it so far, but what really annoys me is, that I cannot get any Codepletion in atom working for my HTML files.

That would make my life so much easier....
That is how it looks in Webstorm (trial version)

The Interface is very simple:

interface Person {
     name: string;
     lastName: string;
     birthday: number;
}

The Controller looks like that:

module myModule {
export interface IMyScope extends ng.IScope {
    person: Person;
}

export class MyCtrl {
    constructor($scope: IMyScope) {
        $scope.person.name = "Lucifer";
    }
}
angular
    .module('myModule')
    .controller('MyCtrl', MyCtrl);

}

It works perfectly fine in *.ts files... For example in Atom:

But it does not work in HTML files. Like here:

Any hint, configuration issues whatsoever you can tell me would be highly appreciated! Thanks for reading!

I would like to know if there is any possibility to get a similar Codepletion / Autoplete in Atom like it is Webstorm.

Right now I am trying to get used to typescript and I really like it so far, but what really annoys me is, that I cannot get any Codepletion in atom working for my HTML files.

That would make my life so much easier....
That is how it looks in Webstorm (trial version)

The Interface is very simple:

interface Person {
     name: string;
     lastName: string;
     birthday: number;
}

The Controller looks like that:

module myModule {
export interface IMyScope extends ng.IScope {
    person: Person;
}

export class MyCtrl {
    constructor($scope: IMyScope) {
        $scope.person.name = "Lucifer";
    }
}
angular
    .module('myModule')
    .controller('MyCtrl', MyCtrl);

}

It works perfectly fine in *.ts files... For example in Atom:

But it does not work in HTML files. Like here:

Any hint, configuration issues whatsoever you can tell me would be highly appreciated! Thanks for reading!

Share edited Sep 27, 2016 at 13:24 Joe 31.1k13 gold badges73 silver badges97 bronze badges asked Sep 18, 2016 at 12:40 djnosedjnose 9458 silver badges19 bronze badges 2
  • I think you can check this link – orangespark Commented Oct 6, 2017 at 6:08
  • 1 You can try this extension for VsCode @angular/[email protected] and [email protected] – phani indra Commented Oct 6, 2017 at 10:50
Add a ment  | 

1 Answer 1

Reset to default 4 +50

A good autoplete package in atom is Autoplete Plus.

In the documentation, it links to a list of providers, the one you want is for html.

本文标签: javascriptCode Completionautocomplete Angulartypescript ATOM in HTMLStack Overflow