Author |
Topic |
|
John_H_Bergman
Tomato Guru
USA
198 Posts |
Posted - Aug 02 2006 : 11:07:28 PM
|
I have noticed that often times an auto-complete pops up, but when I press tab to accept it, it inserts the tab into the code.
This is C#, VS2005. |
John H. Bergman CTO SiliconZone
[email protected]
To Send email, remove the .online. |
|
WannabeeDeveloper
Tomato Guru
Germany
775 Posts |
Posted - Aug 03 2006 : 02:57:31 AM
|
I've seen that, too, in VS 2005 and C++. Not very often, but it happens.
It seems as if the auto-complete-dropdown simply looses focus and thus the TAB is inserted as a TAB instead of selecting/inserting the desired code. |
|
|
|
peterchen
Tomato Guru
126 Posts |
Posted - Aug 03 2006 : 08:15:48 AM
|
Same in VS2005, VC6 C++, C#
the popup list does not show any selection in that case. |
|
|
kevinsikes
Tomato Guru
USA
271 Posts |
Posted - Aug 03 2006 : 09:59:54 AM
|
I've seen this on VS.NET 2003 C++ with VA X 1530. Sometimes when the suggestion listbox contains exactly one entry, it is not selected by default. I press <Enter> to autocomplete, and instead the suggestion listbox is dismissed and a carriage return is inserted into the source code. |
Kevin Sikes Infotainment Platform Design Engineer Ford Motor Company |
|
|
khb
Tomato Guru
Germany
337 Posts |
Posted - Aug 03 2006 : 3:25:54 PM
|
Like Kevin, I faced the same thing for VC6 (Win XP, Build 1530).
Regards, Marcus. |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Aug 03 2006 : 7:13:59 PM
|
under some conditions the suggestion listbox will have no focus. this is a new feature in the recent builds. when this happens tab or enter will enter these characters into the code, rather than selecting something.
this is supposed to only happen when VA thinks you are adding a new variable or function to your code, so the suggestions are unlikely to be correct.
i recently discovered, and put in a case for, the fact that if you have "Include bits of code from surrounding lines" turned on VA is much more prone to getting the focus wrong. if people have this option turned on then this may be a factor.
if anyone is getting this problem consistently, and they are not adding a new variable or function, could they post a few lines of code that reproduce the effect? |
zen is the art of being at one with the two'ness |
|
|
John_H_Bergman
Tomato Guru
USA
198 Posts |
Posted - Aug 04 2006 : 12:10:18 AM
|
Something else I've noticed is that if I attempt to use a variable that I have not defined, but is in the surrounding code already, VA will show it in the list, but when I press TAB, it removes the definition, and I am left with the class name. |
John H. Bergman CTO SiliconZone
[email protected]
To Send email, remove the .online. |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Aug 06 2006 : 1:48:32 PM
|
could you post a code example? i have no idea what you mean. how can you get from part of a variable name to a class name? |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|