Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Suggestion about "as" keyword in C#

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
horeaper Posted - Jun 05 2009 : 04:23:40 AM
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...
6   L A T E S T    R E P L I E S    (Newest First)
horeaper Posted - Jun 15 2009 : 10:10:20 PM
Err... Sorry to tell you that it's already selected...
I think I'll have to wait...
feline Posted - Jun 15 2009 : 2:27:51 PM
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.
horeaper Posted - Jun 09 2009 : 9:29:42 PM
It's didn't work after disable VA, the first item (in my case, "#if") always get selected no matter what type I use.
feline Posted - Jun 09 2009 : 6:27:13 PM
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.
horeaper Posted - Jun 09 2009 : 03:01:00 AM
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
feline Posted - Jun 08 2009 : 1:53:14 PM
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:


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