Datasheet
Figure 1-59: If the code editor can figure out what’s wrong, it displays a suggestion indicator.
Code Snippets
A code snippet is a piece of code that you might find useful in many applications. It is stored in a snip-
pet library so that you can quickly insert it into a new application.
Visual Studio comes with hundreds of snippets for performing standard tasks. Before you start working
on a complicated piece of code, you should take a look at the snippets that are already available to you.
In fact, it would be worth your time to use the Snippet Manager available from the Tools menu to take a
good look at the available snippets right now before you start a new project. There’s little point in you
reinventing methods for calculating statistical values if someone has already done it and given you
the code.
Snippets are stored in simple text files with XML tags, so it is easy to share snippets with other develop-
ers. Go to this book’s Web page,
www.vb-helper.com/vbprogref.htm, to contribute snippets and to
download snippets contributed by others.
60
Chapter 1
571982 ch01_2.qxd 1/19/06 1:16 PM Page 60