Datasheet
17
Chapter 1: Exploring SharePoint Designer
pressing Ctrl+Enter and typing the snippet name/keyword, or by selecting the one you want from a list
just like an IntelliSense parameter. If you find yourself frequently typing the same thing, maybe with
minor variations, you can define your own code snippets to help you.
To define a snippet:
1. Copy the code you want to include in the snippet to the Clipboard.
2. Press Ctrl+Enter. Select the first item on the list (Customize List), which opens the Code
Snippets tab (see Figure 1 - 19 ) of the Page Editor Options dialog. (You can also summon this
dialog by selecting Tools
Page Editor Options, and picking the Code Snippets tab.)
Figure 1-19
3. Click Add to summon the Add Code Snippet dialog (see Figure 1 - 20 ).
Figure 1-20
c01.indd 17c01.indd 17 11/20/08 1:16:21 AM11/20/08 1:16:21 AM