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
 No suggestion for variables "class..."
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

v_v
Senior Member

Russia
29 Posts

Posted - Jul 19 2013 :  12:38:42 PM  Show Profile  Reply with Quote
Hello,

There is a picture with example:


If I have a variable with any name starting with "class" no one variant is selected in the suggestion box during typing. So I have to use arrows.

VAX 10.7.1946
Win7 x64 sp1, VS2012 sp3

accord
Whole Tomato Software

United Kingdom
3164 Posts

Posted - Jul 20 2013 :  3:23:02 PM  Show Profile  Reply with Quote
This is caused by Visual Studio snippets:

- Tools -> Code Snippet Manager...
- Select Visual C++ in the combobox under "Language:"
- Open Visual C++ treenode to see the snippets, including "class" and "classi".

class and classi snippets are the obvious reason here. Snippets are always preferred, so you can rely on them when want fast expanding, e.g. class, enter. Always. Also, this is how Visual Studio works, so if you disable Viusal Assist temporarily (VAssistX -> Enable/Disable Visual Assist X), you get the same effect. We would like to keep Visual Studio behavior when feasible, so Visual Assist can remain "transparent" instead of being "obstructive".

You can turn this feature off by setting the following to true:
Tools -> Options... -> Text Editor -> C/C++ -> Advanced -> Disable Member List Code Snippets

Personally, I disable this, and when I need a snippet, I use the shortcut for

Edit -> Intellisense -> Insert Snippet...

(You can even change the shortcut)
For example, I like the "switch" snippet of Visual Studio which inserts all items of an enum as cases of the switch, automatically. Mostly, I use VA snippets though (which is a separate feature: http://www.wholetomato.com/products/features/vasnippets.asp)
Go to Top of Page

CyberMew
Junior Member

13 Posts

Posted - Aug 01 2013 :  08:08:52 AM  Show Profile  Reply with Quote
Sorry to be a little off topic, but you mentioned that VS built-in snippets has support for "switch"? Is this on C++/VS2010? It would be great to automatically list all cases of the switch if they are enums. Perhaps VAX should do this as well?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3164 Posts

Posted - Aug 01 2013 :  5:23:05 PM  Show Profile  Reply with Quote
I saw this first in VS2012 with C++. As far as I know, it was supported in earlier versions for C#.

We are considering something like this maybe as a refactoring command:

case=19137
Go to Top of Page

sean
Whole Tomato Software

USA
2641 Posts

Posted - Aug 21 2015 :  12:27:29 AM  Show Profile  Reply with Quote
case=19137 is implemented in build 2073 as the command "Add Missing Case Statements"
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000