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
 Pointer with new smart suggestion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

skogkatt
New Member

China
2 Posts

Posted - Nov 10 2016 :  04:51:03 AM  Show Profile  Reply with Quote
For example:

typedef unsigned char BYTE;
typedef BYTE* PBYTE;
int _tmain(int argc, _TCHAR* argv[])
{
PBYTE pByte = // at this point, after press '=',
// VA will show smart suggestion "new PBYTE" or "NULL"
return 0;
}

Could VA add one more suggesion: "new BYTE[]"?



Edited by - skogkatt on Nov 10 2016 04:52:03 AM

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Nov 10 2016 :  2:21:09 PM  Show Profile  Reply with Quote
Do you have many typedefs you would want to use this with, or just a few? If there are just a few, have you considered using a VA Snippet, perhaps one like:

PBYTE $end$ = new BYTE[];


which will insert all of the line for you, just leaving you to supply the variable name, and the caret positioned for you to do so. If there are just two or three types you use this frequently with, you could have a snippet for each, with similar shortcuts, to help you select the one you want.

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