我想知道在 Atom 中是否有类似 Webstorm 的代码自动完成功能。
目前我正在尝试使用 TypeScript,并且迄今为止我非常喜欢它,但真正困扰我的是,我无法让 Atom 在我的 HTML 文件中工作自动完成功能。
如果有的话,那将使我的生活轻松得多……
这是 WebStorm(试用版)的外观:
![webstorm screenshot](https://istack.dev59.com/mszt0.webp)
界面非常简单:
interface Person {
name: string;
lastName: string;
birthday: number;
}
控制器长这样:
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);
如果您能告诉我任何提示、配置问题,将不胜感激!谢谢阅读!
@angular/language-service@5.0.0-beta.5 和 typescript@2.4.2
。 - phani indra