Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA 2476: comments in tooltips break at char 80
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Mar 06 2023 :  07:14:49 AM  Show Profile  Reply with Quote
For whatever reason, the XML comments in C# tooltips break at column 80 always. (my column indicator is set to 120, no match here)



feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 06 2023 :  09:22:42 AM  Show Profile  Reply with Quote
We really should have a bit more awareness of the width of the tooltip. I think this is covered by:

case=142047

zen is the art of being at one with the two'ness
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Mar 06 2023 :  09:31:31 AM  Show Profile  Reply with Quote
The real question is why does it break automatically at column 80? Also, why does it show the XML comments since they are already resolved by VS?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Mar 09 2023 :  12:34:47 PM  Show Profile  Reply with Quote
It looks like VA isn't really aware of the tooltip width. So, given the width is "unknown", we need to word wrap at some number, and 80 isn't an entirely stupid choice, since I have come across various examples of code standards that say all code should be word wrapped at 80.

As for the XML comment block, adding these comments does seem rather redundant. I have put in a feature request to skip adding XML comments:

case=149259

but non XML comments should still be added to tooltips, since the IDE isn't showing those. I have Doxygen sample comments on hand as a test case, and suspect this does happen in the real world.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000