Code block completion?

Can I setup the environment so that when I type:

If  <some condition>  Then

it will automatically insert:

End If

Tom KnowltonWeb developerAsked:
Who is Participating?
Raynard7Connect With a Mentor Commented:

unfortunatley this can not be done

You can select "Automatic insertion of end constructs" that will fill in some constructors for you but not end if (shows you how to do this)

But you can not get it to give you your end if (partly this is becuase the IDE would not know where to put it (at what nesting leve) explains this in more detail.

You could however create a template with this code snippet and then select that to write your "END IF" but this is about ally ou can do
Tom KnowltonWeb developerAuthor Commented:
Huh...seemed to work that time....

Is there a way to turn it ON / OFF  (this functionality)  ??
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.