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
 Technical Support
 lambda expressions autocomplete madness
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

clintp
New Member

3 Posts

Posted - Feb 05 2010 :  09:32:41 AM  Show Profile  Reply with Quote
Using VS 2008, Visual Assist X 10.5.1738.0

When constructing a lambda expression in C#, the input variable to the expression triggers keyword expansion -- and is starting to drive me crazy.

If I attempt to type:
fields.Keys.Where( k => k == "test)


Before I can finish I wind up with:
fields.Keys.Where(KeyNotFoundException=


It's not just "k", it's almost any single letter input variable.

Workarounds include typing the => first, backing up with the arrow keys and typing the input variable again. Or use a two-letter input variable with unlikely combinations (xk, qp, hj). But having to make a style change to suit Visual Assist is stupid. Is there a fix for this in the works?

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Feb 05 2010 :  1:23:04 PM  Show Profile  Reply with Quote
Do you have either of the options:

VA Options -> Advanced -> Listboxes -> Selections committed with: Any character not valid in a symbol
IDE tools menu -> Options -> Text Editor -> C# -> IntelliSense -> Committed by pressing the space bar

turned on? It sounds like the listbox is being accepted when you type the space after "k", but this should not happen by default.

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

clintp
New Member

3 Posts

Posted - Feb 05 2010 :  2:57:07 PM  Show Profile  Reply with Quote
quote:
Originally posted by feline

Do you have either of the options:

VA Options -> Advanced -> Listboxes -> Selections committed with: Any character not valid in a symbol
IDE tools menu -> Options -> Text Editor -> C# -> IntelliSense -> Committed by pressing the space bar

turned on? It sounds like the listbox is being accepted when you type the space after "k", but this should not happen by default.



Strangely enough I had *both* of them checked, for optimal annoyance.

Thanks for the quick reply.
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