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
 Feature Requests
 VA Outline comment symbol collapsing
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxim
Ketchup Master

59 Posts

Posted - Nov 07 2007 :  11:38:36 AM  Show Profile  Reply with Quote
If I add a comments like these:

/******************************************************************************
 * This is a boxed comment using a block comment
 ******************************************************************************/

////////////////////////////////////////////////////////////////////////////////
// This is a boxed comment using line comments
////////////////////////////////////////////////////////////////////////////////


then in the VA Outline I can't see any of the actual comment text without some serious horizontal scrolling. It'd be nice if it would collapse such strings down to something more minimal.

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Nov 07 2007 :  12:52:53 PM  Show Profile  Reply with Quote
Place keyboard focus into VA outline and then hover the mouse over the comment item. You will then get a multi-line tooltip showing you the text in a much more readable format.

The problem with changing the displayed text is that it no longer reflects what you have in the file, which could cause problems when using VA Outline to reorder the current file via drag and drop.

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

Maxim
Ketchup Master

59 Posts

Posted - Nov 08 2007 :  06:55:11 AM  Show Profile  Reply with Quote
Well, the outline substitutes

foo()

for

void foo()
{
  // some code
}

so why not

// // foo //

for

//////////////////////////////////////////////////////////////////////
// foo
//////////////////////////////////////////////////////////////////////

just by merging leading/trailing comment chars into each other. Well, it's a suggestion.

Edited by - Maxim on Nov 08 2007 06:55:46 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Nov 09 2007 :  1:13:05 PM  Show Profile  Reply with Quote
My initial concern centred around marker comments like:

//*****************************************************************************

which I use to break code files up into logical blocks, or sometimes to simply mark the start of a function that does not need any further documentation.

The solution here is to only try and collapse a comment when there are words in it, which does not sound to hard to detect, at least most of the time:

case=9824

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