admin管理员组文章数量:1330660
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
1 Answer
Reset to default 4 +50A 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
版权声明:本文标题:javascript - Code Completionautocomplete Angulartypescript ATOM in HTML - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742262639a2442800.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论