Try\Catch

3 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 19 Jul 2010 Link to this post

    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. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 19 Jul 2010 Link to this post

    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
  3. DevCraft banner
  4. Bill
    Bill avatar
    28 posts
    Member since:
    Apr 2011

    Posted 06 Aug 2011 Link to this post

    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...
Back to Top