Solved

Code block completion?

Posted on 2006-10-27
2
149 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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 …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now