Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Wrong Suggestion Offered When Type is Known

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
stevethresh Posted - Jun 10 2009 : 11:47:49 AM
Why can't Visual Assist suggest the correct variable name in the following example:


struct FOO 
{
	char data[10];
};

struct BAR
{
	char data[10];
};

void zero_foo(FOO &foo)
{
	memset(&foo,sizeof(foo));
}

void zero_bar(BAR &bar)
{
	memset(&bar,sizeof(bar));
}

void do_stuff(void)
{
	FOO tmp_foo;
	BAR tmp_bar;

	zero_foo(tmp)// <- Typing tmp suggest tmp_bar see attached suggestion see attached image.
}


The standard Visual Studio 2008 intellisense offers tmp_foo no matter what order the variables are declared in. Could Visual Assist do the same?

http://www.flickr.com/photos/25467336@N03/3614313448/
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jun 11 2009 : 4:19:20 PM
Moving the topic was the easy part of the request

Context sensitive suggestions are not an easy matter. Currently we do not analyze the context of the suggestions. There are a lot of different situations and I think it would involve a lot of work, and the benefit may not be as colossal.

Basically I think it is a good idea, and worth to think about, but don't hold your breath
stevethresh Posted - Jun 11 2009 : 04:48:08 AM
You do need to hit Alt+Right Arrow to auto-complete the word.

I've tried it again this morning an now the default intellisense isn't working for me either so could this post be moved to the suggestion box?
accord Posted - Jun 10 2009 : 3:08:18 PM
Default intellisense offers tmp_bar for me using VS2008 SP1 and disabled Visual Assist.
It doesn't offer anything at all, and get tmp_bar after ctrl+space. Do you need to press ctrl+space to get your suggestion?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000