3

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); } 
3
  • To hide the selected code or area (first, select the area), just use Ctrl + M, Ctrl + H. This works for any selection. and you can use this link <a href="helixoft.com/blog/…> Commented Sep 22, 2021 at 12:43
  • thanks but is there is any other solution ? Commented Sep 22, 2021 at 13:00
  • 1
    you can use NoCommnet [link]( marketplace.visualstudio.com/items?itemName=3dGrabber.NoComment) Commented Sep 22, 2021 at 15:10

1 Answer 1

3

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.
Sign up to request clarification or add additional context in comments.

1 Comment

Got so excited when I saw NoComent. I've thought of this exact tool and hoped for it for years... but won't install on Visual Studio 2022 :( :( :(

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.