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
 Surround With in VB
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mike ONeill
Tomato Guru

South Africa
103 Posts

Posted - Oct 17 2008 :  09:57:20 AM  Show Profile  Reply with Quote
Hi

I had to "revert" to VB recently and I tried to do Surround With across a block of code to surround with Try Catch

All I was offered was #Region #End region and some ( ) Bracketting

I normally use C# and see no problem there in either Vs2005 or VS 2008, is this deliberate

VS 2005
VAX 1649
XP Sp2

Cheers

Mike

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 17 2008 :  5:10:58 PM  Show Profile  Reply with Quote
This is simply because Visual Assist shipped with less default Snippets for VB, than for C# and C++.

You can add your own snippets here:

VA Options -> Advanced -> Suggestions -> Edit VA Snippets (button)

Here expand "VB" node.

Snippets contains "$selected$" will be included in the "Surround With" menu.

This is a C# example for this type of snippet:

for ($end$)
{
	$selected$
}

Go to Top of Page

Mike ONeill
Tomato Guru

South Africa
103 Posts

Posted - Oct 20 2008 :  03:46:03 AM  Show Profile  Reply with Quote
Thanks

I really must engage the brain occasionally
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