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
 Option for default paremeter's comment block
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

slicer4ever
New Member

2 Posts

Posted - Sep 25 2011 :  9:07:37 PM  Show Profile  Reply with Quote
hello, i was wondering if it would be possible to include an option to disable the default behavior when auto-completing a function which is declared with default prameters.

example:

#include <stdio.h>

int foo(int x=0);

//int foo(int x/*=0*/){ <--Normal behavior.
int foo(int x){ //<--Behavior i would prefer.
   printf("%d\\n", x):
}

int main(int argc, char **argv){
   foo(1);
   return 0;
}

i'm banking on the fact that hopefully adding a simple boolean check in your code is all that would really need to be done to disable/enable such behavior.

thanks for the great product otherwise=-).

accord
Whole Tomato Software

United Kingdom
3279 Posts

Posted - Sep 26 2011 :  1:07:36 PM  Show Profile  Reply with Quote
We are considering adding an option for this, at some point.

case=3495
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 26 2014 :  01:50:19 AM  Show Profile  Reply with Quote
case=3495 is implemented in build 2042 (see Refactoring page of VA Options dialog).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000