Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Code block completion?

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

856 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