This is a migrated thread and some comments may be shown as answers.

Try\Catch

2 Answers 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Steve
Top achievements
Rank 2
Veteran
Steve asked on 19 Jul 2010, 02:42 PM
I THINK JC is now closing off my braces (which is nice for the mist part)

But when I put a "try{" at the top of some code it closes that off on the same line forcing me to delete it

Is there a way to wrap code in a try\catch?

2 Answers, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 19 Jul 2010, 04:20 PM
Hi Steve,

The behavior that you describe is most probably caused by JustCode's  typing assistance feature. You can enable/disable it from the  JustCode | Options | General. 
What you want to achieve is possible using JustCode's templates. First select the code you want to surround with try/catchThen hit Alt + End (or select from JustCode's menu "Show Available Code Commands...") in order to show the "Code" menu. There you will be presented with all current "surround with" templates and the try/catch template is there. After selecting it JustCode will surround your code with a try/catch statement.

I hope this helps and if you have any other suggestions or problems, please don't hesitate to write back.

Kind regards,
Deyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bill
Top achievements
Rank 1
answered on 06 Aug 2011, 10:49 PM
I can't find the "Surround With" option in Visual Basic.

I created a Surround Template (I copied the C# one and change the syntax to VB) but there is still no option that I can see.

If this is not implemented in JustCode for VB, please add it.  Microsoft had surround with refactorings for VB in Visual Studio 2008 then removed them in 2010. I really miss those...
Tags
General Discussions
Asked by
Steve
Top achievements
Rank 2
Veteran
Answers by
Deyan Varchev
Telerik team
Bill
Top achievements
Rank 1
Share this question
or