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
 Else expansion
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

icStatic
Junior Member

14 Posts

Posted - Apr 12 2013 :  11:31:05 AM  Show Profile  Reply with Quote
Is there a way to disable the expansion of else<ENTER> into

else
{

}

I've searched for it in snippets (but it isn't in the list, even though when I hover over it then it says 'Code snippet').

I write the body of my code before the closing brace so I find this infuriating!

I'm running 10.7.1929.

Thanks!

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 12 2013 :  11:43:32 AM  Show Profile  Reply with Quote
If you are using VS2012, that is VS not VA.

Delete or rename this file:
C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\Snippets\\1033\\Visual C++\\else.snippet
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 12 2013 :  11:46:56 AM  Show Profile  Reply with Quote
For reference, the listing of the default VC++ snippets in listboxes is controlled by the "Disable Member List Code Snippets" option at:
Tools | Options | Text Editor | C/C++ | Advanced

Edited by - sean on Apr 12 2013 11:48:01 AM
Go to Top of Page

icStatic
Junior Member

14 Posts

Posted - Apr 12 2013 :  11:51:41 AM  Show Profile  Reply with Quote
Aha, thanks! It's always something simple. Weirdly enough the behavior went away when I disabled VAX.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 12 2013 :  11:55:51 AM  Show Profile  Reply with Quote
oops - then it sounds like we are doing something wrong. Will look into it.
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 12 2013 :  12:01:32 PM  Show Profile  Reply with Quote
Sorry - yes, VA is changing the selection state of the snippet. case=73604
The snippet should not be selected, just focused.
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Apr 25 2013 :  2:33:08 PM  Show Profile  Reply with Quote
case=73604 is fixed in build 1936
Go to Top of Page

icStatic
Junior Member

14 Posts

Posted - Apr 25 2013 :  4:44:15 PM  Show Profile  Reply with Quote
Brilliant, thanks!
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