在typescript注释中获取语法高亮显示、代码镜头和重构



在下面的示例中,我可以使用@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为代码编辑器提供了一种获取completionserrorshintsnavigation的方法。

特点:

  1. 自动完成
  2. 错误检查
  3. 快速信息和导航

visual studio codeMarketplace获取扩展

最新更新