在下面的示例中,我可以使用@param {RootStoreModule}
中的引用重命名类,但不能使用注释第一行中的引用。
class RootStoreModule {
/**
* A dead comment to {RootStoreModule} (nothing here), `RootStoreModule` (only sintax) (1°)
* @param {RootStoreModule} -> Cool here everything works, except tooltip (2°)
*/
private method(){}
}
如何在Visual Studio代码中的typescript文件中的注释摘要/描述中的类引用中获得语法高亮显示、代码镜头和重构?
也就是说,如何获得第二行和第一行可用的资源(重构…(。
Angular Language Service为代码编辑器提供了一种获取completions
、errors
、hints
和navigation
的方法。
特点:
- 自动完成
- 错误检查
- 快速信息和导航
从visual studio code
Marketplace
获取扩展