Solved

Code block completion?

Posted on 2006-10-27
2
158 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:Tom 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:Tom Knowlton
ID: 17822612
Huh...seemed to work that time....

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

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net and sql server 4 54
Optimize the query 5 55
VB.Net creating Contact in Outlook 1 59
Vb.net progressbar with timer1 in visual studio win app 11 38
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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