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
 RETCODE instead of return
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hensz
Senior Member

Germany
26 Posts

Posted - Dec 11 2007 :  11:00:49 AM  Show Profile  Reply with Quote
Hi!

I'm using the latest version of VA (10.4) and a new "feature" of the VA suggestions is annoying me . When I type 'return' the word RETCODE is always suggested, until I type the 'u' of return. This is very annoying, since I've never used RETCODE in my code. Is there a way to disable this suggestion?

Best regards,
Torsten

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 12 2007 :  07:25:38 AM  Show Profile  Reply with Quote
Turning off:

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

will stop suggestions appearing, but this will stop all suggestions.

A better approach might be to add a Snippet for "return", perhaps with the shortcut "re" or "ret".

http://www.wholetomato.com/products/features/vasnippets.asp

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

hensz
Senior Member

Germany
26 Posts

Posted - Dec 17 2007 :  05:58:21 AM  Show Profile  Reply with Quote
The second suggestion works fine as a workaround. btw. there is already a Snippet for 'return' with the shortcut 'r'. But I don't understand why the uppercase 'RETCODE' is preferred to the lowercase 'return' when I start writing lowercase. I don't care if 'RETCODE' is displayed in the list of suggestions, but the item selected by default should be the most obvious one, the best matching one, and that is 'return'.

If there is no more generic solution I insist on a "bugfix" in VA , because this issue didn't appear in older versions of VA. A generic solution would be an option like "Prefer suggestions with matching case".

Best regards,
Torsten
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 17 2007 :  07:47:50 AM  Show Profile  Reply with Quote
Matching case comes up periodically. A lot of people, me included, prefer to type in lower case and rely on VA suggesting upper case items. One approach is to view lower case letters as case insensitive but Upper case letters as case sensitive:

case=119

Of course this is the opposite of what you are asking for here.

Comparing VA 1561 and VA 1624 I am seeing more suggestions when typing "ret" in 1624, but "return" is still the default suggestion for me.

What is the default / selected suggestion for you? "return" or "RETCODE"?

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

hensz
Senior Member

Germany
26 Posts

Posted - Dec 18 2007 :  08:59:20 AM  Show Profile  Reply with Quote
quote:
What is the default / selected suggestion for you? "return" or "RETCODE"?

When I type 're' I want "return". I never want "RETCODE", even if I accidentally write 'RET', but this is only because I never write "RETCODE" at all.

Perhaps you can make case-sensitivity for suggestions optionally? I would use this option (this would help me to distinguish "false" from "FALSE", too), you would not use it, everyone is happy .
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 18 2007 :  12:20:31 PM  Show Profile  Reply with Quote
We try to avoid adding to many options to VA, they can be very difficult to maintain, due to all the sneaking around behind the IDE we have to do.

For the cases "return" "false" and "FALSE" I would suggest adding VA Snippets. In fact we ship case sensitive snippets for both "false" and "FALSE" by default.

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

hensz
Senior Member

Germany
26 Posts

Posted - Dec 19 2007 :  02:50:47 AM  Show Profile  Reply with Quote
Ok, I understand that many options are hard to maintain.

The case sensitive code snippets for 'false' and 'FALSE' are quite useless, since VA doesn't use them case sensitive. When I press 'f' "FALSE" is suggested by default. So I always must select the other "false" from the list - at least in some cases. And since VA doesn't always behave identically I always must hesitate and check what I coded to be sure...
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 19 2007 :  07:40:26 AM  Show Profile  Reply with Quote
If I know correctly VA Snippets has the highest priority. So if you put
shortcut: r
description: return
...into "VA Snippet Editor" (located at VAssistX/Visual Assist X Options.../Advanced/Suggestions/Edit VA Snippets)
return will always the highest priority suggestion. If I know correctly VA Snippets have not got this entry by default.
I have this entry, and I am happy with it.

Edited by - accord on Dec 19 2007 07:46:16 AM
Go to Top of Page

hensz
Senior Member

Germany
26 Posts

Posted - Dec 19 2007 :  07:49:38 AM  Show Profile  Reply with Quote
quote:
If I know correctly VA Snippets have the highest priority.

Sadly this is not true...

quote:
So if you put
shortcut: r
description: return
...into "VA Snippet Editor"
return will always have the highest priority.

In my version this snippet already existed. But nevertheless RETCODE is prefered when I enter 're'. And I haven't added the snippet for 'return' manually, so it's part of the VA default settings.

Edited by - hensz on Dec 19 2007 07:50:09 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Dec 19 2007 :  09:09:33 AM  Show Profile  Reply with Quote
VA Snippets are designed to be case sensitive and have top priority. For me this is how they work.

Which IDE and version of VA are you using?

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 (VS2005)

along with your VA snippets files please. If you are using winXP these will be stored in the directory:

C:\\Documents and Settings\\ <USERNAME> \\Application Data\\VisualAssist\\Autotext\
I can then use your settings and snippet files, and see what happens on my system.

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

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 19 2007 :  4:24:37 PM  Show Profile  Reply with Quote
quote:
Originally posted by hensz
In my version this snippet already existed. But nevertheless RETCODE is prefered when I enter 're'.



The snippet I mentioned will have top priority only if you type exactly "r".
If you type "re", your "r" snippet will not help. In this case you will need a "re" snippet also.

Edited by - accord on Dec 19 2007 4:58:26 PM
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 10 2008 :  12:46:14 AM  Show Profile  Reply with Quote
Getting "RETCODE" when you want "return" is case=11277

case=11277 is fixed in build 1632
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