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
 Selections committed with...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Micah71381
New Member

4 Posts

Posted - May 17 2013 :  6:21:01 PM  Show Profile  Reply with Quote
I am using Visual Studio 2012 Update 2 and Visual Assist X 10.7.1936.0.

In a C++ header file I type the following:

#include <stdint.h>
uint32_t ui


At this point there is a suggestions listbox over my cursor with uint16_t highlighted. I then proceed to finish my declaration by typing a semicolon (;). At this point it replaces my "ui" with "uint16_t". The expected behavior is that it puts the semi-colon in and does not auto-complete.

In the options I have gone to
Advanced > Listboxes > Settings > Selections committed with: > Any character not valid in a symbol
and unchecked it. The other two boxes (Tab and Enter) are both checked.

This behavior appears to also occur with open parenthesis as well. The root of the issue is that the option I have intentionally left off is not being respected and it is auto-completing on keys other than tab/enter.

Rant:
This behavior is the thing that keeps driving me away from Visual Assist. I like some of the options the tool provides but I don't want it to do anything without me telling it to and auto-completing without my request drives me crazy because I have to keep going back and fixing all the times it does this to me.

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - May 18 2013 :  4:20:54 PM  Show Profile  Reply with Quote
Apologies for this problem. I am not sure what is happening here, and so far I cannot reproduce this problem.

Firstly, when tying this code, my suggestion listbox does not have focus by default, since VA thinks I am creating a new variable, which I am. Even after giving the listbox focus, a semi-colon is not accepting the current item in the listbox.

Can you please check your registry, and see if suggestions always having focus has been turned on on your system please:

http://docs.wholetomato.com?W350

If this has been turned On, does turning it Off help?

Can you also try editing the IDE setting:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Advanced -> Member List Commit Characters

and remove semi-colon from this list. Does this have any effect?

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

Micah71381
New Member

4 Posts

Posted - May 20 2013 :  1:00:42 PM  Show Profile  Reply with Quote
I navigated to the key
HKEY_CURRENT_USER\\Software\\Whole Tomato\\Visual Assist X\\VANet11
but did not see either
ListboxSelectionStyle
or
SuggestionSelect
in it. Should I add them?

Removing semicolon from the commit characters in the VS options appears to have resolved the issue. However, this problem doesn't occur with VisualAssist installed.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - May 20 2013 :  4:52:24 PM  Show Profile  Reply with Quote
You should not need to add this registry key, you should be getting the correct behaviour by default. Something odd is going on here, and it would be nice to find out what is causing it.

Can you please export your VA and IDE settings and send them to me:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

I can then import them here and see if I can reproduce the problem. Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

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

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - May 21 2013 :  6:08:06 PM  Show Profile  Reply with Quote
I have the settings files, thank you for these. With your VA settings I am seeing the same problem. Can you please try turning On:

VA Options -> Advanced -> Suggestions -> Include suggestions in listboxes

you should now be able to put semi-colon back into the list:

IDE tools menu -> Options -> Text Editor -> C/C++ -> Advanced -> Member List Commit Characters

if you want. VA suggestions are designed to detect when you are declaring a new variable, and avoid giving the listbox focus in this situation, avoiding the problem of the listbox being accepted by semi-colon or other keys not valid in a symbol.

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

Micah71381
New Member

4 Posts

Posted - May 22 2013 :  12:01:40 PM  Show Profile  Reply with Quote
That does resolve my issue, but it depends on me using the VA listboxes. I would prefer to use the VS listboxes. Is there a way to use the VS listboxes with the old VS functionality yet still benefit from other features of VA such as syntax highlighting and code refactoring?


Why not the VA listbox:

The VA listboxes include too many items (things that are out of scope, not included in the current header tree I am working with, and not in the current namespace). They also tend to jump around as I type. The VS listboxes focus on something early and tend to only change when that thing becomes invalid by the matching heuristic. The VA listbox changes selection with just about every character I type it seems.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - May 22 2013 :  7:11:00 PM  Show Profile  Reply with Quote
That makes sense, and yes you can, we recently added this ability. You just need to set a registry key flag as described in this FAQ entry:

http://docs.wholetomato.com?W330

Hopefully this will work well for you, and give you exactly what you are looking for here

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

Micah71381
New Member

4 Posts

Posted - May 22 2013 :  7:15:11 PM  Show Profile  Reply with Quote
Great! That resolves my issues completely. Thank you for the assistance.
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