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
 Suggestion about "as" keyword in C#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

horeaper
Senior Member

Singapore
49 Posts

Posted - Jun 05 2009 :  04:23:40 AM  Show Profile  Reply with Quote
For example, if I type "IBaseItem item = listView1.SelectedItems[0] as" and a space, a toolbox will show...well, try that yourself and you will find out the toolbox is useless. I think, in most cases, make the "IBaseItem" selected is fine, and all I need to do is press the enter key.

Err.. Sorry about my poor English. If you can't get the idea of what I'm saying, I can add some pictures...

My life for Aiur!!!

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 08 2009 :  1:53:14 PM  Show Profile  Reply with Quote
Is the type "IBaseItem" a known type on your system? I have tried this line here, and this i what I am seeing when I use a known type "String", the listbox works correctly:



and using your line, where "IBaseItem" is an unknown type, which is not in the listbox:


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

horeaper
Senior Member

Singapore
49 Posts

Posted - Jun 09 2009 :  03:01:00 AM  Show Profile  Reply with Quote
Of course IBaseItem is a known type, otherwise I won't ask...
I just tried some system type like string and it still doesn't work. I'm using VA1723 on VS2005SP1, XP SP3

My life for Aiur!!!

Edited by - horeaper on Jun 09 2009 03:01:53 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 09 2009 :  6:27:13 PM  Show Profile  Reply with Quote
What happens if you disable VA, via the menu item:

VAssistX -> Enable/Disable Visual Assist X

I would expect the IDE to select the right item, by default, in this situation. Yet in my tests with VA disabled often the very first item in the listbox is being selected, even when using "String" as the type.

I am not sure why this seems to work some of the time and fail some of the time.

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

horeaper
Senior Member

Singapore
49 Posts

Posted - Jun 09 2009 :  9:29:42 PM  Show Profile  Reply with Quote
It's didn't work after disable VA, the first item (in my case, "#if") always get selected no matter what type I use.

My life for Aiur!!!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Jun 15 2009 :  2:27:51 PM  Show Profile  Reply with Quote
At least we are not breaking an existing IDE feature, that is a bit of good news.

I have put in a feature request for this:

case=28314

For now you may find turning on:

IDE tools menu -> Options -> Text Editor -> C# -> IntelliSense -> IntelliSense pre-selects most recently used members

helps a bit with this. It is certainly not a complete fix, but if you are often using the same type then it should help a bit.

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

horeaper
Senior Member

Singapore
49 Posts

Posted - Jun 15 2009 :  10:10:20 PM  Show Profile  Reply with Quote
Err... Sorry to tell you that it's already selected...
I think I'll have to wait...

My life for Aiur!!!

Edited by - horeaper on Jun 15 2009 11:58:10 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