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
 create local variables in same line (C++)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AlexL
Starting Member

Germany
1 Posts

Posted - Aug 26 2013 :  04:53:47 AM  Show Profile  Reply with Quote
Sometimes I'm not quite sure what a return type is, so I simply write:

foo = bar();


Then I tell Visual Assist to create a local variable foo. What it does is it creates:

BarType foo;


somewhere at the top of my function. What I actually want is:

BarType foo = bar();


Feel free to correct me in case I'm just using the feature wrong.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 26 2013 :  4:03:11 PM  Show Profile  Reply with Quote
This makes sense. I have put in a feature request for Create from Usage to reuse what it have at hand to see what the developers make of it:

case=76424

So Create from Usage wouldn't create separate declaration line.

Edited by - accord on Aug 26 2013 4:03:26 PM
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