Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to show/hide comments in visual studio 2019

How can i hide/show comments on visual studio 2019 i tried the extention 'HideShow Comments' but i did not work work with the version 2019 of vs somethink like this : comments activated :

 /// <summary>
    /// Syncroniously reads specified number of ushorts starting from specified address in data memory
    /// </summary>
    /// <param name="startAddress">Address to start to read from</param>
    /// <param name="count">Number of ushorts to read</param>
    /// <returns>Read data</returns>
    public ushort[] ReadData(ushort startAddress, ushort count)
    {
        var sid = IncrementSid();
        var cmd = FinsDriver.ReadDataCommand(new Header(sid, true), startAddress, count);
        return Read(sid, cmd);
    }

and comments disabled :

  public ushort[] ReadData(ushort startAddress, ushort count)
    {
        var sid = IncrementSid();
        var cmd = FinsDriver.ReadDataCommand(new Header(sid, true), startAddress, count);
        return Read(sid, cmd);
    }
like image 720
CSharp-n Avatar asked Dec 06 '25 04:12

CSharp-n


1 Answers

There are some VS extensions that might do what you want.

  • NoComment - hides comments and replaces them with a callout icon. Comments are shown as tooltip and when editing them.
  • CommentsRemover - removes both single line and multi-line comments from current active document/project/solution while preserving documentation headers (File header, Class headers & method headers) and those.
  • Collapse Comments - adds a command to collapse comments in the open code file.
like image 109
eglease Avatar answered Dec 08 '25 17:12

eglease