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
 Continue // and /** comments after a return
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rryk
Senior Member

Germany
48 Posts

Posted - Nov 28 2011 :  06:32:31 AM  Show Profile  Reply with Quote
A nice feature of Eclipse is that one can start a comment, type a text that spans over several lines and yet avoid typing "// " or " * " before each line. It works as following:

1. Start a new line with a comment like "// " or "/** ".
2. Type until the end of the line and hit return key.
3. The IDE will start a new line with "// " or " * " and an appropriate indent before it to match previous line.

As a result this looks as following (X denotes the position of the next character that will be typed after hitting return key):


class Foo {
{
    // This function does nothing really useful, but it has a
    // stupid useless comment above it that is only designed
    // to be very-very-very-very-very long and span over several 
    // X
    const char * bar() { return "foo"; }


or


class Foo {
{
    /** 
     * This function does nothing really useful, but it has a
     * stupid useless comment above it that is only designed
     * to be very-very-very-very-very long and span over several
     * X
    const char * bar() { return "foo"; }


These are only two comment styles that I am using and IMHO the most popular ones. However, one can add support for more styles into the VAX. Also I believe this feature should be configurable, i.e. one should be able to switch it off (or select only some styles that it should be enabled for).

Edited by - rryk on Nov 28 2011 06:33:52 AM

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Nov 28 2011 :  11:02:00 AM  Show Profile  Reply with Quote
VA recently added this feature:

http://www.wholetomato.com/products/features/autoExtendComments.asp

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

rryk
Senior Member

Germany
48 Posts

Posted - Dec 02 2011 :  1:47:04 PM  Show Profile  Reply with Quote
Hmm... looks like the feature is there, but it doesn't work for me. I have enabled it in the options, disabled/enabled VAX, even tried to reload Visual Studio - it still doesn't extend my comments. I am using version 10.6.1859.0 built 2011.10.02 which seems to be the most recent.

Edited by - rryk on Dec 02 2011 1:47:42 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Dec 05 2011 :  5:10:10 PM  Show Profile  Reply with Quote
This is working correctly for me with VA 1859 in VS2005, VS2008 and VS2010. I have tested all three IDE's with a .cpp file, running under winXP SP3.

Are you able to turn other VA options on and off, and see VA's behaviour actually change?

For example, does turning:

VA Options -> Advanced -> Display -> Highlight current line

on and off have an effect?

Can you post an example of the comment blocks you are working with, where this is not working? I am wondering if there is something about your comments or files that is confusing VA.

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

rryk
Senior Member

Germany
48 Posts

Posted - Dec 17 2011 :  12:33:56 AM  Show Profile  Reply with Quote
Changing options works - I was able to see dotted box around the current line. I have noticed that it doesn't work at all in a large solution (many thousands of files), has started working after about a minute on an average-sized solution (few hundreds of files) and works immediately on a tiny solution (few files).
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Dec 19 2011 :  12:17:13 PM  Show Profile  Reply with Quote
The delay with larger solutions sounds like VA is still parsing the solution. But this does not explain why you can never turn on highlight current line in a large solution. Parsing should finish eventually.

How large are your test solutions? Using winXP, VS2008 and VA 1862 I have opened a solution based on some firefox source code. OFIW reports that this solution contains 8,891 files. VA parsed this code in about 3 minutes on a dual core machine.

While the IDE was still parsing I was able to turn on and off VA's highlight current line option.

Extending multi-line comments is working for me in this large solution. As noted in the documentation for this feature:

quote:
Only comments that already span at least two lines are auto-extended.


Which OS and IDE are you using?
Does extending multi-line comments work for you in the tiny and average sized solutions?

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