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

What key combination triggers the if template?

1 Answer 31 Views
Code Templates
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 11 Jan 2013, 05:57 PM
Hello,

I often trigger the if template at the wrong time.  I'll start writing (in VB):

if (

And at this point, Telerik injects the if template, as such:

if (condition) then

end if

But at this point, I already started typing, so it gets all mangled like:

if (condition) then

end if(somevar = "X"

This constantly messes me up and I'd like to turn this feature off.  How can I do so?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 15 Jan 2013, 01:23 PM
Hello,

 Thanks for contacting us.
I really doubt that this is an issue with JustCode template. Our template is triggered when "if" is written and then Shift + Space are pressed (or the combination that is set in your settings). If you write "if(" and try to activate the template nothing should happen. Furthermore, if the template is triggered your cursor should not be located at the end of the clause. Here I have made a small example.
However, you can disable the templates or change their shortcut  from JustCode menu > Options > Code Templates.
Thanks.

Please, do not hesitate to contact us if you have any further questions or need of assistance.

Regards,
Zdravko
the Telerik team
Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
Tags
Code Templates
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or