使用visual studio code做为unity3d 的代码编辑工具,按照网上安装了一些插件。在自动生成类或方式的注释时发现生成了重复内容。最终原因是因为我安装了 C# XML Documentation Comments这个插件。网上查的资料都是几年前的,现在这个插件已经不再更新了,说明里有如下内容:
C# for Visual Studio Code (powered by OmniSharp) now officially supports the documentation comment from v1.23.8 (December 18th, 2020). You can use the official one by turning on Editor: Format On Type.
所以在C#插件里已经集成了注释的功能。把C# XML Documentation卸载掉就可以了。