【发布时间】:2021-07-05 05:41:55
【问题描述】:
我正在使用 VSCode 中的 C#,并希望在我的类、属性和方法中使用智能感知。我习惯用 Typescript 编写它,看起来像这样:
/**
* // TODO: do not forget to comment "someMethod"
* Brief description of this method
* @param nameOfParam1 description of this parameter's purpose
* @returns describe what is returning
*/
someMethod(nameOfParam1 : string): string { ... }
使用 Visual Studio Code,我什至可以为这些 cmets 获得一些很好的自动颜色。我发现 C# XML cmets 非常丑陋和臃肿。
有没有办法在 C# 中使用相同的注释样式并让智能感知也起作用?
【问题讨论】:
-
你检查过这个issue吗?
-
是的,我在 VSCode 中搜索了可以提供帮助的扩展。有很多但没有一个可以让我在 C# 上使用智能感知和其他类型的评论。我还查看了 C# 文档以查看 XML cmets 的替代方案。没有找到适合我的东西:/.
标签: c# typescript comments intellisense