Skip to content
| Marketplace
Sign in
Visual Studio>Tools>CommentToXML
CommentToXML

CommentToXML

爱让一切都对了

|
341 installs
| (0) | Free
把//形式的注释换成///<Summary>……</Summary>形式的注释
Download

增加一个右键菜单,能将写在行尾的注释转换为<Summary>形式的注释。如下。

C#
Edit Script
csharp
        protected Point[] structArr;    //存放砖块组成信息的坐标数组        protected int _xPos;    //砖块中心点所在的X坐标        protected int _yPos;    //砖块中心所在的y坐标        protected Color _blockColor;    //砖块颜色        protected Color disapperColor;  //擦除颜色        protected int rectPix;          //每个单元格像素//转换后 After        /// <summary>存放砖块组成信息的坐标数组</summary>        protected Point[] structArr;        /// <summary>砖块中心点所在的X坐标</summary>        protected int _xPos;        /// <summary>砖块中心所在的y坐标</summary>        protected int _yPos;        /// <summary>砖块颜色</summary>        protected Color _blockColor;        /// <summary>擦除颜色</summary>        protected Color disapperColor;        /// <summary>每个单元格像素</summary>        protected int rectPix;
        protected Point[] structArr;    //存放砖块组成信息的坐标数组 
        protected int _xPos;    //砖块中心点所在的X坐标 
        protected int _yPos;    //砖块中心所在的y坐标 
        protected Color _blockColor;    //砖块颜色 
        protected Color disapperColor;  //擦除颜色 
        protected int rectPix;          //每个单元格像素 
 
//转换后 After 
 
        /// <summary>存放砖块组成信息的坐标数组</summary> 
        protected Point[] structArr; 
 
        /// <summary>砖块中心点所在的X坐标</summary> 
        protected int _xPos; 
 
        /// <summary>砖块中心所在的y坐标</summary> 
        protected int _yPos; 
 
        /// <summary>砖块颜色</summary> 
        protected Color _blockColor; 
 
        /// <summary>擦除颜色</summary> 
        protected Color disapperColor; 
 
        /// <summary>每个单元格像素</summary> 
        protected int rectPix; 
 
 

Add a function that can put comments in the end of lines in <summary>..</summary>, as above.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft