Solved

Code block completion?

Posted on 2006-10-27
2
154 Views
Last Modified: 2010-04-23
Can I setup the environment so that when I type:


If  <some condition>  Then


it will automatically insert:

End If


???
0
Comment
Question by:knowlton
2 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 500 total points
ID: 17822523
Hi,

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
http://dnjonline.com/article.aspx?ID=mar05_vbvscsharp (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) http://www.tek-tips.com/viewthread.cfm?qid=1279547&page=10 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
0
 
LVL 5

Author Comment

by:knowlton
ID: 17822612
Huh...seemed to work that time....

Is there a way to turn it ON / OFF  (this functionality)  ??
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question